2019-06-03 03:31:38 +00:00
|
|
|
<template>
|
2019-11-14 00:18:19 +00:00
|
|
|
<div
|
|
|
|
v-if="release"
|
|
|
|
class="content"
|
|
|
|
>
|
|
|
|
<Banner :release="release" />
|
2019-07-06 03:29:12 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<div class="info">
|
|
|
|
<div class="column">
|
|
|
|
<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-14 04:13:38 +00:00
|
|
|
:href="release.url"
|
2019-11-15 04:10:59 +00:00
|
|
|
:class="{ link: release.url }"
|
2019-11-14 04:13:38 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2019-11-15 04:10:59 +00:00
|
|
|
class="tidbit date"
|
2019-11-14 04:13:38 +00:00
|
|
|
>
|
2019-11-15 04:10:59 +00:00
|
|
|
<Icon
|
|
|
|
v-if="isAfter(new Date(), release.date)"
|
|
|
|
icon="calendar2"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
v-else
|
|
|
|
v-tooltip.bottom="'To be released'"
|
|
|
|
icon="sun3"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<span class="showable">{{ formatDate(release.date, 'MMM D, YYYY') }}</span>
|
|
|
|
<span class="hideable">{{ formatDate(release.date, 'MMMM D, YYYY') }}</span>
|
2019-11-14 04:13:38 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.shootId"
|
2019-11-15 00:27:58 +00:00
|
|
|
v-tooltip.bottom="`Shoot #`"
|
2019-11-14 04:13:38 +00:00
|
|
|
class="tidbit shoot hideable"
|
|
|
|
>
|
|
|
|
<Icon icon="clapboard-play" />
|
|
|
|
{{ release.shootId }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration"
|
2019-11-15 00:27:58 +00:00
|
|
|
v-tooltip.bottom="`Duration`"
|
2019-11-14 04:13:38 +00:00
|
|
|
class="tidbit duration hideable"
|
|
|
|
>
|
|
|
|
<Icon icon="stopwatch" />
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration >= 3600"
|
|
|
|
class="duration-segment"
|
|
|
|
>{{ Math.floor(release.duration / 3600) }}:</span>
|
|
|
|
<span class="duration-segment">{{ Math.floor((release.duration % 3600) / 60).toString().padStart(2, '0') }}:</span>
|
|
|
|
<span class="duration-segment">{{ (release.duration % 60).toString().padStart(2, '0') }}</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="tidbit site">
|
|
|
|
<a
|
|
|
|
v-if="release.site.independent"
|
|
|
|
:href="`/network/${release.network.slug}`"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.network.slug}/network.png`"
|
|
|
|
:title="release.network.name"
|
|
|
|
class="logo logo-site"
|
|
|
|
>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<template v-else>
|
|
|
|
<a :href="`/network/${release.network.slug}`">
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.network.slug}/network.png`"
|
|
|
|
:title="release.network.name"
|
|
|
|
:alt="release.network.name"
|
|
|
|
class="logo logo-network"
|
|
|
|
>
|
|
|
|
</a>
|
2019-07-06 03:29:12 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<span class="chain">presents</span>
|
2019-10-29 04:21:51 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<a :href="`/site/${release.site.slug}`">
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.network.slug}/${release.site.slug}.png`"
|
|
|
|
:title="release.site.name"
|
|
|
|
class="logo logo-site"
|
|
|
|
>
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<h2 class="row title">{{ release.title }}</h2>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<ul class="actors nolist">
|
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
class="actor"
|
|
|
|
>
|
|
|
|
<Actor :actor="actor" />
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.tags.length > 0"
|
|
|
|
class="row"
|
2019-07-06 03:29:12 +00:00
|
|
|
>
|
2019-11-14 04:13:38 +00:00
|
|
|
<Icon icon="price-tags3" />
|
2019-10-29 04:21:51 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<ul class="tags nolist">
|
|
|
|
<li
|
|
|
|
v-for="tag in release.tags"
|
|
|
|
:key="`tag-${tag.slug}`"
|
|
|
|
class="tag"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/tag/${tag.slug}`"
|
|
|
|
class="link"
|
|
|
|
>{{ tag.name }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2019-11-15 00:27:58 +00:00
|
|
|
<div
|
|
|
|
v-if="release.duration"
|
|
|
|
class="row duration showable"
|
|
|
|
>
|
|
|
|
<Icon icon="stopwatch" />
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration >= 3600"
|
|
|
|
class="duration-segment"
|
|
|
|
>{{ Math.floor(release.duration / 3600) }}:</span>
|
|
|
|
<span class="duration-segment">{{ Math.floor((release.duration % 3600) / 60).toString().padStart(2, '0') }}:</span>
|
|
|
|
<span class="duration-segment">{{ (release.duration % 60).toString().padStart(2, '0') }}</span>
|
|
|
|
</div>
|
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<p
|
|
|
|
v-if="release.description"
|
|
|
|
class="row description"
|
|
|
|
>
|
|
|
|
<Icon icon="info2" />
|
|
|
|
{{ release.description }}
|
|
|
|
</p>
|
2019-10-29 04:21:51 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<div
|
|
|
|
v-if="release.studio"
|
|
|
|
class="row"
|
|
|
|
>
|
|
|
|
<Icon icon="video-camera2" />
|
2019-10-29 04:21:51 +00:00
|
|
|
|
2019-10-30 03:45:42 +00:00
|
|
|
<a
|
|
|
|
v-if="release.studio"
|
|
|
|
:href="release.studio.url"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2019-11-14 04:13:38 +00:00
|
|
|
class="link"
|
|
|
|
>{{ release.studio.name }}</a>
|
|
|
|
</div>
|
2019-10-30 03:45:42 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<div
|
2019-11-15 00:27:58 +00:00
|
|
|
v-if="release.shootId"
|
|
|
|
class="row showable"
|
2019-07-06 03:29:12 +00:00
|
|
|
>
|
2019-11-15 00:27:58 +00:00
|
|
|
<Icon icon="clapboard-play" />
|
2019-11-04 04:47:37 +00:00
|
|
|
|
2019-11-15 00:27:58 +00:00
|
|
|
<a
|
|
|
|
:href="release.url"
|
|
|
|
:title="`release.shootId`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="link shoot"
|
|
|
|
>{{ release.shootId }}</a>
|
2019-11-14 04:13:38 +00:00
|
|
|
</div>
|
2019-11-04 04:47:37 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
<span class="row">
|
|
|
|
<Icon icon="drawer-in" />
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/added/${formatDate(release.dateAdded, 'YYYY-MM-DD')}`"
|
|
|
|
:title="`Added on ${formatDate(release.dateAdded, 'MMMM D, YYYY')}`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="link added"
|
|
|
|
>{{ formatDate(release.dateAdded, 'MMMM D, YYYY') }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-06-03 03:31:38 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2019-07-06 03:29:12 +00:00
|
|
|
|
|
|
|
<script>
|
2019-11-14 04:13:38 +00:00
|
|
|
import Actor from '../tile/actor.vue';
|
2019-11-14 00:18:19 +00:00
|
|
|
import Banner from './banner.vue';
|
|
|
|
|
2019-07-06 03:29:12 +00:00
|
|
|
function pageTitle() {
|
|
|
|
return this.release && this.release.title;
|
|
|
|
}
|
|
|
|
|
|
|
|
async function mounted() {
|
2019-11-15 01:37:17 +00:00
|
|
|
this.release = await this.$store.dispatch('fetchReleaseById', this.$route.params.releaseId);
|
2019-07-06 03:29:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2019-11-14 00:18:19 +00:00
|
|
|
components: {
|
2019-11-14 04:13:38 +00:00
|
|
|
Actor,
|
2019-11-14 00:18:19 +00:00
|
|
|
Banner,
|
|
|
|
},
|
2019-07-06 03:29:12 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
release: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
pageTitle,
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
2019-11-14 04:13:38 +00:00
|
|
|
.column {
|
|
|
|
width: 1200px;
|
|
|
|
max-width: 100%;
|
2019-07-06 03:29:12 +00:00
|
|
|
padding: 0 1rem;
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0 0 1rem 0;
|
2019-10-29 04:21:51 +00:00
|
|
|
|
|
|
|
.icon {
|
2019-11-14 04:13:38 +00:00
|
|
|
display: inline-block;
|
2019-11-09 00:22:50 +00:00
|
|
|
width: 1rem;
|
2019-10-29 04:21:51 +00:00
|
|
|
fill: $shadow-strong;
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 1rem 0 0;
|
2019-10-29 04:21:51 +00:00
|
|
|
}
|
2019-07-06 03:29:12 +00:00
|
|
|
}
|
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
.info {
|
|
|
|
background: $background;
|
|
|
|
margin: 0 0 1.5rem 0;
|
|
|
|
box-shadow: 0 0 3px $shadow-weak;
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
.column {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
2019-07-06 03:29:12 +00:00
|
|
|
}
|
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
.tidbit {
|
2019-07-06 03:29:12 +00:00
|
|
|
display: inline-block;
|
2019-11-14 04:13:38 +00:00
|
|
|
height: 100%;
|
2019-07-06 03:29:12 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
&:not(:last-child) {
|
|
|
|
border-right: solid 1px $shadow-hint;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: $shadow-strong;
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.date,
|
|
|
|
&.duration,
|
|
|
|
&.shoot {
|
2019-11-15 00:27:58 +00:00
|
|
|
flex-shrink: 0;
|
2019-11-14 04:13:38 +00:00
|
|
|
padding: 1.25rem 1rem 1.25rem 0;
|
|
|
|
margin: 0 1rem 0 0;
|
2019-07-06 03:29:12 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-29 04:21:51 +00:00
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
.site {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
padding: .25rem 0;
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-site {
|
|
|
|
height: 3rem;
|
|
|
|
max-width: 15rem;
|
|
|
|
object-fit: contain;
|
2019-11-15 00:27:58 +00:00
|
|
|
object-position: 100% 50%;
|
2019-11-14 04:13:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo-network {
|
|
|
|
height: 1.5rem;
|
|
|
|
max-width: 10rem;
|
|
|
|
object-fit: contain;
|
2019-11-15 00:27:58 +00:00
|
|
|
object-position: 100% 50%;
|
2019-11-14 04:13:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.chain {
|
|
|
|
color: $shadow;
|
|
|
|
padding: 0 .5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin: 0 0 1.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
line-height: 1.25;
|
|
|
|
}
|
|
|
|
|
2019-11-09 00:22:50 +00:00
|
|
|
.duration {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.duration-segment {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
2019-11-20 03:53:36 +00:00
|
|
|
.actors {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
.link {
|
|
|
|
display: inline-block;
|
2019-10-29 04:21:51 +00:00
|
|
|
color: $link;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
2019-11-14 04:13:38 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag .link {
|
|
|
|
background: $background;
|
|
|
|
display: inline-block;
|
|
|
|
padding: .5rem;
|
|
|
|
margin: 0 .25rem .25rem 0;
|
|
|
|
box-shadow: 0 0 2px $shadow-weak;
|
|
|
|
text-decoration: none;
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.showable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint3) {
|
|
|
|
.logo-network,
|
|
|
|
.chain {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.hideable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-11-15 04:10:59 +00:00
|
|
|
.row .showable {
|
2019-11-14 04:13:38 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2019-11-15 04:10:59 +00:00
|
|
|
.tidbit .showable {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2019-11-14 04:13:38 +00:00
|
|
|
.logo-site {
|
2019-11-15 00:27:58 +00:00
|
|
|
width: 15rem;
|
|
|
|
max-width: 100%;
|
2019-10-29 04:21:51 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-06 03:29:12 +00:00
|
|
|
</style>
|