2019-12-13 04:04:04 +00:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
v-if="release"
|
|
|
|
class="content"
|
|
|
|
>
|
|
|
|
<Banner :release="release" />
|
|
|
|
|
2020-01-09 01:09:17 +00:00
|
|
|
<div class="details">
|
2019-12-13 04:04:04 +00:00
|
|
|
<div class="column">
|
|
|
|
<a
|
|
|
|
v-if="release.date"
|
|
|
|
v-tooltip.bottom="release.url && `View scene on ${release.site.name}`"
|
|
|
|
:title="release.url && `View scene on ${release.site.name}`"
|
|
|
|
:href="release.url"
|
|
|
|
:class="{ link: release.url }"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="tidbit date"
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.shootId"
|
|
|
|
v-tooltip.bottom="`Shoot #`"
|
|
|
|
class="tidbit shoot hideable"
|
|
|
|
>
|
|
|
|
<Icon icon="clapboard-play" />
|
|
|
|
{{ release.shootId }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration"
|
|
|
|
v-tooltip.bottom="`Duration`"
|
|
|
|
class="tidbit duration hideable"
|
|
|
|
>
|
|
|
|
<Icon icon="stopwatch" />
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration >= 3600"
|
|
|
|
class="duration-segment"
|
2020-01-06 20:49:37 +00:00
|
|
|
>{{ Math.floor(release.duration / 3600).toString().padStart(2, '0') }}:</span>
|
2019-12-13 04:04:04 +00:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<span class="chain">presents</span>
|
|
|
|
|
2020-01-06 04:19:38 +00:00
|
|
|
<a
|
|
|
|
:href="`/site/${release.site.slug}`"
|
|
|
|
>
|
2019-12-13 04:04:04 +00:00
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.network.slug}/${release.site.slug}.png`"
|
|
|
|
:title="release.site.name"
|
|
|
|
class="logo logo-site"
|
|
|
|
>
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-09 01:09:17 +00:00
|
|
|
<div class="info column">
|
2019-12-13 04:04:04 +00:00
|
|
|
<h2 class="row title">{{ release.title }}</h2>
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
<div class="row associations">
|
2019-12-13 04:04:04 +00:00
|
|
|
<ul class="actors nolist">
|
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
>
|
|
|
|
<Actor :actor="actor" />
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-03-09 04:06:37 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.movies && release.movies.length > 0"
|
|
|
|
class="movies"
|
|
|
|
>
|
|
|
|
<Release :release="release.movies[0]" />
|
|
|
|
</div>
|
2019-12-13 04:04:04 +00:00
|
|
|
</div>
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
<div
|
|
|
|
v-if="release.scenes && release.scenes.length > 0"
|
|
|
|
class="scenes"
|
|
|
|
>
|
2019-12-15 04:42:51 +00:00
|
|
|
<h3>Scenes</h3>
|
|
|
|
<Releases
|
|
|
|
:releases="release.scenes"
|
|
|
|
class="row"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
<div
|
|
|
|
v-if="release.tags.length > 0"
|
|
|
|
class="row"
|
|
|
|
>
|
|
|
|
<Icon icon="price-tags3" />
|
|
|
|
|
|
|
|
<ul class="tags nolist">
|
|
|
|
<li
|
|
|
|
v-for="tag in release.tags"
|
2020-01-17 00:55:54 +00:00
|
|
|
:key="`tag-${tag.slug}`"
|
2019-12-13 04:04:04 +00:00
|
|
|
class="tag"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/tag/${tag.slug}`"
|
|
|
|
class="link"
|
|
|
|
>{{ tag.name }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.duration"
|
|
|
|
class="row duration showable"
|
|
|
|
>
|
|
|
|
<Icon icon="stopwatch" />
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-if="release.duration >= 3600"
|
|
|
|
class="duration-segment"
|
2020-01-06 20:49:37 +00:00
|
|
|
>{{ Math.floor(release.duration / 3600).toString().padStart(2, '0') }}:</span>
|
2019-12-13 04:04:04 +00:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<p
|
|
|
|
v-if="release.description"
|
|
|
|
class="row description"
|
|
|
|
>
|
|
|
|
<Icon icon="info2" />
|
|
|
|
{{ release.description }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.studio"
|
|
|
|
class="row"
|
|
|
|
>
|
|
|
|
<Icon icon="video-camera2" />
|
|
|
|
|
|
|
|
<a
|
|
|
|
v-if="release.studio"
|
|
|
|
:href="release.studio.url"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="link"
|
|
|
|
>{{ release.studio.name }}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.shootId"
|
|
|
|
class="row showable"
|
|
|
|
>
|
|
|
|
<Icon icon="clapboard-play" />
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="release.url"
|
|
|
|
:title="`release.shootId`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="link shoot"
|
|
|
|
>{{ release.shootId }}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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>
|
2020-02-03 23:18:53 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<Icon icon="paste2" />
|
|
|
|
|
|
|
|
<input
|
|
|
|
class="filename"
|
|
|
|
:value="filename"
|
|
|
|
@focus="copyFilename"
|
|
|
|
>
|
|
|
|
</div>
|
2019-12-13 04:04:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-02-03 23:18:53 +00:00
|
|
|
import config from 'config';
|
|
|
|
import format from 'template-format';
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
import Banner from './banner.vue';
|
2019-12-15 04:42:51 +00:00
|
|
|
import Actor from '../tile/actor.vue';
|
|
|
|
import Release from '../tile/release.vue';
|
|
|
|
import Releases from './releases.vue';
|
2019-12-13 04:04:04 +00:00
|
|
|
|
|
|
|
function pageTitle() {
|
|
|
|
return this.release && this.release.title;
|
|
|
|
}
|
|
|
|
|
2020-02-03 23:18:53 +00:00
|
|
|
function copyFilename(event) {
|
|
|
|
event.target.setSelectionRange(0, event.target.value.length);
|
|
|
|
document.execCommand('copy');
|
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
async function mounted() {
|
|
|
|
this.release = await this.$store.dispatch('fetchReleaseById', this.$route.params.releaseId);
|
2020-02-03 23:18:53 +00:00
|
|
|
this.filename = format(config.filename.pattern, {
|
|
|
|
...this.release,
|
2020-03-27 03:39:13 +00:00
|
|
|
shootId: this.release.shootId || '',
|
2020-02-03 23:18:53 +00:00
|
|
|
date: this.formatDate(this.release.date, config.filename.date),
|
|
|
|
}, {
|
|
|
|
spreadSeparator: config.filename.separator,
|
|
|
|
});
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Actor,
|
|
|
|
Banner,
|
2019-12-15 04:42:51 +00:00
|
|
|
Release,
|
2020-03-09 04:06:37 +00:00
|
|
|
Releases,
|
2019-12-13 04:04:04 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
release: null,
|
2020-02-03 23:18:53 +00:00
|
|
|
filename: null,
|
2019-12-13 04:04:04 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
pageTitle,
|
|
|
|
},
|
|
|
|
mounted,
|
2020-02-03 23:18:53 +00:00
|
|
|
methods: {
|
|
|
|
copyFilename,
|
|
|
|
},
|
2019-12-13 04:04:04 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
.column {
|
|
|
|
width: 1200px;
|
|
|
|
max-width: 100%;
|
|
|
|
padding: 0 1rem;
|
|
|
|
margin: 0 auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2020-01-09 02:23:16 +00:00
|
|
|
.info {
|
2020-01-09 01:09:17 +00:00
|
|
|
padding: 1rem;
|
2020-03-27 03:39:13 +00:00
|
|
|
border-left: solid 1px var(--shadow-hint);
|
|
|
|
border-right: solid 1px var(--shadow-hint);
|
2020-01-09 02:23:16 +00:00
|
|
|
flex-grow: 1;
|
2020-01-09 01:09:17 +00:00
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
&.associations {
|
|
|
|
align-items: start;
|
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
.icon {
|
|
|
|
display: inline-block;
|
|
|
|
width: 1rem;
|
2020-03-27 03:39:13 +00:00
|
|
|
fill: var(--shadow-strong);
|
2019-12-13 04:04:04 +00:00
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-09 01:09:17 +00:00
|
|
|
.details {
|
2020-03-27 03:39:13 +00:00
|
|
|
background: var(--profile);
|
|
|
|
color: var(--text-light);
|
|
|
|
box-shadow: 0 0 3px var(--shadow-weak);
|
2019-12-13 04:04:04 +00:00
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
.column {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
|
|
|
|
.link {
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--text-light);
|
2020-01-06 20:49:37 +00:00
|
|
|
}
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tidbit {
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
2020-03-27 03:39:13 +00:00
|
|
|
border-right: solid 1px var(--lighten-hint);
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
2020-03-27 03:39:13 +00:00
|
|
|
fill: var(--lighten-weak);
|
2019-12-13 04:04:04 +00:00
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.date,
|
|
|
|
&.duration,
|
|
|
|
&.shoot {
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 1.25rem 1rem 1.25rem 0;
|
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
object-position: 100% 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-network {
|
|
|
|
height: 1.5rem;
|
|
|
|
max-width: 10rem;
|
|
|
|
object-fit: contain;
|
|
|
|
object-position: 100% 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chain {
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--lighten);
|
2019-12-13 04:04:04 +00:00
|
|
|
padding: 0 .5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin: 0 0 1.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
2020-03-27 03:39:13 +00:00
|
|
|
line-height: 1.5;
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.duration {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.duration-segment {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-01-09 01:52:20 +00:00
|
|
|
.actors {
|
|
|
|
display: flex;
|
2020-03-09 04:06:37 +00:00
|
|
|
flex-grow: 1;
|
2020-01-09 01:52:20 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2020-01-09 01:06:17 +00:00
|
|
|
.actor {
|
|
|
|
width: 10rem;
|
|
|
|
margin: 0 1rem .5rem 0;
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
.movies {
|
|
|
|
}
|
|
|
|
|
2020-02-03 23:18:53 +00:00
|
|
|
.filename {
|
|
|
|
width: 100%;
|
|
|
|
padding: .5rem;
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--text);
|
|
|
|
border: solid 1px var(--shadow-weak);
|
|
|
|
background: var(--background);
|
2020-02-03 23:18:53 +00:00
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
.link {
|
|
|
|
display: inline-block;
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--link);
|
2019-12-13 04:04:04 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--primary);
|
2019-12-13 04:04:04 +00:00
|
|
|
|
|
|
|
.icon {
|
2020-03-27 03:39:13 +00:00
|
|
|
fill: var(--primary);
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag .link {
|
2020-03-27 03:39:13 +00:00
|
|
|
background: var(--background);
|
2019-12-13 04:04:04 +00:00
|
|
|
display: inline-block;
|
|
|
|
padding: .5rem;
|
|
|
|
margin: 0 .25rem .25rem 0;
|
2020-03-27 03:39:13 +00:00
|
|
|
box-shadow: 0 0 2px var(--shadow-weak);
|
2019-12-13 04:04:04 +00:00
|
|
|
text-decoration: none;
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
|
|
|
&:hover {
|
2020-03-27 03:39:13 +00:00
|
|
|
color: var(--primary);
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.showable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint3) {
|
|
|
|
.logo-network,
|
|
|
|
.chain {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.hideable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row .showable {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tidbit .showable {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-site {
|
|
|
|
width: 15rem;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|