2019-11-10 03:20:22 +00:00
|
|
|
<template>
|
2019-12-15 04:42:51 +00:00
|
|
|
<div
|
2020-02-10 00:27:13 +00:00
|
|
|
:id="`${release.type}-${release.id}`"
|
|
|
|
:class="{ [release.type]: true }"
|
2019-12-15 04:42:51 +00:00
|
|
|
class="tile"
|
|
|
|
>
|
2020-01-11 04:31:04 +00:00
|
|
|
<span class="poster">
|
2019-11-10 03:20:22 +00:00
|
|
|
<span class="details">
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
2020-02-26 00:15:50 +00:00
|
|
|
v-if="release.site && release.site.independent"
|
2019-12-01 04:32:47 +00:00
|
|
|
:to="`/network/${release.network.slug}`"
|
2019-11-14 04:13:38 +00:00
|
|
|
class="site site-link"
|
2020-01-06 04:19:38 +00:00
|
|
|
><img
|
|
|
|
:src="`/img/logos/${release.network.slug}/favicon.png`"
|
|
|
|
class="favicon"
|
2020-01-06 20:49:37 +00:00
|
|
|
>{{ release.network.name }}</router-link>
|
2020-01-06 04:19:38 +00:00
|
|
|
|
2020-02-20 01:53:24 +00:00
|
|
|
<span
|
2020-02-26 00:15:50 +00:00
|
|
|
v-else-if="release.network"
|
2020-02-20 01:53:24 +00:00
|
|
|
class="site"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
v-tooltip.bottom="`Part of ${release.network.name}`"
|
|
|
|
:title="`Part of ${release.network.name}`"
|
|
|
|
:to="`/network/${release.network.slug}`"
|
|
|
|
class="site-link"
|
|
|
|
><img
|
|
|
|
:src="`/img/logos/${release.network.slug}/favicon.png`"
|
|
|
|
class="favicon"
|
|
|
|
></router-link>
|
|
|
|
|
|
|
|
<router-link
|
|
|
|
v-tooltip.bottom="`More from ${release.site.name}`"
|
|
|
|
:title="`More from ${release.site.name}`"
|
|
|
|
:to="`/site/${release.site.slug}`"
|
|
|
|
class="site-link"
|
|
|
|
>{{ release.site.name }}</router-link>
|
|
|
|
</span>
|
2019-11-10 03:20:22 +00:00
|
|
|
|
2020-02-26 00:15:50 +00:00
|
|
|
<span v-else />
|
|
|
|
|
2019-11-10 03:20:22 +00:00
|
|
|
<a
|
|
|
|
v-if="release.date"
|
2019-11-15 04:10:59 +00:00
|
|
|
v-tooltip.bottom="release.url && `View scene on ${release.site.name}`"
|
|
|
|
:title="release.url && `View scene on ${release.site.name}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
:href="release.url"
|
2020-03-02 02:41:41 +00:00
|
|
|
:class="{ upcoming: isAfter(release.date, new Date()), new: release.isNew }"
|
2019-11-10 03:20:22 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
|
|
|
>{{ formatDate(release.date, 'MMM D, YYYY') }}</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
v-else
|
|
|
|
:href="release.url"
|
2020-03-02 02:41:41 +00:00
|
|
|
:class="{ upcoming: isAfter(release.date, new Date()), new: release.isNew }"
|
2019-11-10 03:20:22 +00:00
|
|
|
title="Scene date N/A, showing date added"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
2019-12-05 00:26:22 +00:00
|
|
|
>{{ `(${formatDate(release.dateAdded, 'MMM D, YYYY')})` }}</a>
|
2019-11-10 03:20:22 +00:00
|
|
|
</span>
|
|
|
|
|
2020-02-19 03:41:53 +00:00
|
|
|
<a
|
|
|
|
:href="`/${release.type || 'scene'}/${release.id}/${release.slug}`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2019-11-10 03:20:22 +00:00
|
|
|
class="link"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
v-if="release.poster"
|
2020-02-26 23:38:11 +00:00
|
|
|
:src="`/${release.batch === 'dummy' ? 'img' : 'media'}/${release.poster.thumbnail}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
:alt="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>
|
|
|
|
|
2019-12-13 02:57:01 +00:00
|
|
|
<img
|
2019-12-13 04:04:04 +00:00
|
|
|
v-else-if="release.covers && release.covers.length > 0"
|
2020-02-26 23:38:11 +00:00
|
|
|
:src="`/${release.batch === 'dummy' ? 'img' : 'media'}/${release.covers[0].thumbnail}`"
|
2019-12-13 02:57:01 +00:00
|
|
|
:alt="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>
|
|
|
|
|
2019-11-10 03:20:22 +00:00
|
|
|
<div
|
|
|
|
v-else
|
|
|
|
:title="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>No thumbnail available</div>
|
2020-02-19 03:41:53 +00:00
|
|
|
</a>
|
2019-11-10 03:20:22 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<div class="info">
|
2020-02-19 03:41:53 +00:00
|
|
|
<a
|
|
|
|
:href="`/${release.type || 'scene'}/${release.id}/${release.slug}`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2019-11-10 03:20:22 +00:00
|
|
|
class="row link"
|
|
|
|
>
|
|
|
|
<h3
|
2019-11-28 04:36:22 +00:00
|
|
|
v-tooltip.top="release.title"
|
2019-11-10 03:20:22 +00:00
|
|
|
:title="release.title"
|
|
|
|
class="title"
|
2019-12-15 04:42:51 +00:00
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
v-if="release.type === 'movie'"
|
|
|
|
icon="film"
|
|
|
|
/>{{ release.title }}
|
|
|
|
</h3>
|
2020-02-19 03:41:53 +00:00
|
|
|
</a>
|
2019-11-10 03:20:22 +00:00
|
|
|
|
|
|
|
<span class="row">
|
|
|
|
<ul class="actors nolist">
|
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
class="actor"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/actor/${actor.slug}`"
|
|
|
|
class="actor-link"
|
|
|
|
>{{ actor.name }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
<ul
|
2019-11-10 03:20:22 +00:00
|
|
|
:title="release.tags.map(tag => tag.name).join(', ')"
|
2019-11-14 00:18:19 +00:00
|
|
|
class="tags nolist"
|
2019-11-10 03:20:22 +00:00
|
|
|
>
|
2019-11-14 00:18:19 +00:00
|
|
|
<li
|
|
|
|
v-for="tag in release.tags"
|
2020-01-17 00:55:54 +00:00
|
|
|
:key="`tag-${tag.slug}`"
|
2019-11-14 00:18:19 +00:00
|
|
|
class="tag"
|
|
|
|
>
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
|
|
|
:to="`/tag/${tag.slug}`"
|
2019-11-14 00:18:19 +00:00
|
|
|
class="tag-link"
|
2019-12-01 04:32:47 +00:00
|
|
|
>{{ tag.name }}</router-link>
|
2019-11-14 00:18:19 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2019-11-10 03:20:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
release: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
2020-02-10 00:27:13 +00:00
|
|
|
referer: {
|
|
|
|
type: String,
|
|
|
|
default: null,
|
|
|
|
},
|
2019-11-10 03:20:22 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.tile {
|
2019-11-14 00:18:19 +00:00
|
|
|
background: $background;
|
2019-11-10 03:20:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 0 .5rem 0;
|
|
|
|
overflow: hidden;
|
2019-11-14 04:13:38 +00:00
|
|
|
box-shadow: 0 0 3px $shadow-weak;
|
2019-11-10 03:20:22 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2020-01-11 04:31:04 +00:00
|
|
|
.poster {
|
2019-11-10 03:20:22 +00:00
|
|
|
position: relative;
|
|
|
|
margin: 0 0 .5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbnail {
|
|
|
|
width: 100%;
|
2020-01-11 04:31:04 +00:00
|
|
|
height: 14rem;
|
2019-11-11 04:18:28 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-11-10 03:20:22 +00:00
|
|
|
object-fit: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
background-color: $shadow-hint;
|
|
|
|
color: $shadow;
|
|
|
|
text-shadow: 1px 1px 0 $highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 .5rem;
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 0 .25rem 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.details {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
position: absolute;
|
2019-11-15 04:10:59 +00:00
|
|
|
font-size: 0;
|
2020-01-06 04:19:38 +00:00
|
|
|
|
|
|
|
.favicon {
|
|
|
|
height: 1rem;
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site,
|
|
|
|
.date {
|
2020-02-20 01:53:24 +00:00
|
|
|
color: $text-contrast;
|
2020-01-06 04:19:38 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-11-15 04:10:59 +00:00
|
|
|
background: $shadow;
|
|
|
|
position: relative;
|
2019-11-10 03:20:22 +00:00
|
|
|
font-size: .8rem;
|
|
|
|
padding: .25rem;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-03-02 02:41:41 +00:00
|
|
|
.date {
|
|
|
|
&.upcoming:before {
|
|
|
|
content: '';
|
|
|
|
background: $primary;
|
|
|
|
width: .5rem;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: -.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-11-15 04:10:59 +00:00
|
|
|
}
|
|
|
|
|
2019-11-10 03:20:22 +00:00
|
|
|
.site {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2020-02-20 01:53:24 +00:00
|
|
|
.site-link {
|
|
|
|
display: flex;
|
|
|
|
color: $text-contrast;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2019-11-10 03:20:22 +00:00
|
|
|
.info {
|
2019-11-14 00:18:19 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-11-10 03:20:22 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2019-11-28 04:36:22 +00:00
|
|
|
margin: 0 .25rem .25rem 0;
|
2019-12-15 04:42:51 +00:00
|
|
|
color: $text;
|
2020-01-23 13:53:42 +00:00
|
|
|
max-height: 2.75rem;
|
2019-11-10 03:20:22 +00:00
|
|
|
font-size: 1rem;
|
2020-01-23 13:53:42 +00:00
|
|
|
line-height: 1.5;
|
2019-11-28 04:36:22 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2019-12-15 04:42:51 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.network {
|
|
|
|
color: #555;
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.actors {
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
2019-11-14 04:13:38 +00:00
|
|
|
max-height: 2.75rem;
|
|
|
|
line-height: 1.5rem;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tags {
|
2020-01-02 23:59:02 +00:00
|
|
|
max-height: .5rem;
|
2019-11-14 00:18:19 +00:00
|
|
|
padding: .25rem .5rem 1rem .5rem;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-y: hidden;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.actor {
|
2019-11-14 00:18:19 +00:00
|
|
|
margin: 0 .25rem 0 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tag {
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 .25rem .25rem 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
.actor:not(:last-of-type)::after {
|
2019-11-10 03:20:22 +00:00
|
|
|
content: ",";
|
|
|
|
}
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
.actor-link {
|
2019-11-10 03:20:22 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.actor-link {
|
|
|
|
color: $link;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-link {
|
2019-11-14 00:18:19 +00:00
|
|
|
color: $shadow;
|
2019-11-14 04:13:38 +00:00
|
|
|
display: inline-block;
|
2019-11-14 00:18:19 +00:00
|
|
|
padding: .25rem;
|
|
|
|
font-size: .75rem;
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2019-11-28 04:36:22 +00:00
|
|
|
line-height: 1;
|
|
|
|
border: solid 1px $shadow-hint;
|
2019-11-14 00:18:19 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
</style>
|