2019-12-13 04:04:04 +00:00
|
|
|
<template>
|
2020-05-21 01:44:44 +00:00
|
|
|
<div
|
|
|
|
v-if="release"
|
|
|
|
class="content"
|
|
|
|
>
|
2020-07-01 02:47:05 +00:00
|
|
|
<Expand
|
|
|
|
v-if="expanded"
|
2021-01-17 01:07:02 +00:00
|
|
|
class="expand expand-dark"
|
2020-07-01 02:47:05 +00:00
|
|
|
:expanded="expanded"
|
|
|
|
@expand="(state) => expanded = state"
|
|
|
|
/>
|
|
|
|
|
2020-06-30 22:25:27 +00:00
|
|
|
<Scroll
|
2020-12-26 22:51:27 +00:00
|
|
|
v-slot="slotProps"
|
2020-06-30 22:25:27 +00:00
|
|
|
class="scroll-light"
|
|
|
|
:expandable="false"
|
|
|
|
>
|
2020-07-01 02:47:05 +00:00
|
|
|
<Media
|
|
|
|
:release="release"
|
|
|
|
:class="{ expanded }"
|
2020-12-26 22:51:27 +00:00
|
|
|
@load="slotProps.loaded"
|
2020-07-01 02:47:05 +00:00
|
|
|
/>
|
2020-06-30 22:25:27 +00:00
|
|
|
</Scroll>
|
|
|
|
|
2020-08-12 01:30:20 +00:00
|
|
|
<Details :release="release" />
|
2020-05-21 01:44:44 +00:00
|
|
|
|
2020-07-01 02:47:05 +00:00
|
|
|
<Expand
|
2020-09-08 00:20:15 +00:00
|
|
|
v-if="release.photos && release.photos.length > 0"
|
2021-01-17 01:07:02 +00:00
|
|
|
class="expand-bottom expand-dark"
|
2020-07-01 02:47:05 +00:00
|
|
|
:expanded="expanded"
|
|
|
|
@expand="(state) => expanded = state"
|
|
|
|
/>
|
|
|
|
|
2020-05-21 01:44:44 +00:00
|
|
|
<div class="info column">
|
2020-07-01 03:04:02 +00:00
|
|
|
<div class="row">
|
2020-07-03 02:12:56 +00:00
|
|
|
<h2
|
|
|
|
v-if="release.title"
|
|
|
|
class="title"
|
|
|
|
>{{ release.title }}</h2>
|
|
|
|
|
|
|
|
<h2
|
2020-07-03 02:42:20 +00:00
|
|
|
v-else-if="release.actors.length > 0"
|
2020-07-03 02:12:56 +00:00
|
|
|
class="title title-composed"
|
|
|
|
>
|
|
|
|
{{ release.actors.map(actor => actor.name).join(', ') }} for {{ release.entity.name }}
|
|
|
|
<Icon
|
|
|
|
v-tooltip="`This scene has no known official title`"
|
|
|
|
icon="question2"
|
|
|
|
/>
|
|
|
|
</h2>
|
2020-07-01 03:04:02 +00:00
|
|
|
</div>
|
2020-06-29 23:07:48 +00:00
|
|
|
|
2020-07-01 02:47:05 +00:00
|
|
|
<div
|
|
|
|
v-if="release.tags.length > 0"
|
|
|
|
class="row"
|
|
|
|
>
|
2020-08-12 01:30:20 +00:00
|
|
|
<Tags :tags="release.tags" />
|
2020-07-01 02:47:05 +00:00
|
|
|
</div>
|
|
|
|
|
2020-05-21 01:44:44 +00:00
|
|
|
<div class="row associations">
|
2020-12-26 22:51:27 +00:00
|
|
|
<ul class="actors nolist">
|
2020-05-21 01:44:44 +00:00
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
>
|
|
|
|
<Actor :actor="actor" />
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
2020-08-12 01:30:20 +00:00
|
|
|
v-if="release.movies && release.movies.length > 0"
|
|
|
|
class="row"
|
2020-05-21 01:44:44 +00:00
|
|
|
>
|
2020-08-12 01:30:20 +00:00
|
|
|
<span class="row-label">Part of</span>
|
|
|
|
|
|
|
|
<div class="movies">
|
|
|
|
<router-link
|
|
|
|
v-for="movie in release.movies"
|
|
|
|
:key="`movie-${movie.id}`"
|
2020-09-10 21:49:24 +00:00
|
|
|
:to="{ name: 'movie', params: { releaseId: movie.id, releaseSlug: movie.slug } }"
|
2020-08-12 01:30:20 +00:00
|
|
|
class="movie"
|
|
|
|
>
|
|
|
|
<span class="movie-title">{{ movie.title }}</span>
|
|
|
|
<img
|
|
|
|
:src="`/media/${movie.covers[0].thumbnail}`"
|
|
|
|
class="movie-cover"
|
|
|
|
>
|
|
|
|
</router-link>
|
|
|
|
</div>
|
2020-05-21 01:44:44 +00:00
|
|
|
</div>
|
|
|
|
|
2020-09-08 00:20:15 +00:00
|
|
|
<Releases
|
|
|
|
v-if="release.scenes && release.scenes.length > 0"
|
|
|
|
:releases="release.scenes"
|
|
|
|
/>
|
|
|
|
|
2020-05-21 01:44:44 +00:00
|
|
|
<div
|
2020-07-02 02:04:28 +00:00
|
|
|
v-if="release.description"
|
2020-07-01 02:47:05 +00:00
|
|
|
class="row"
|
2020-05-21 01:44:44 +00:00
|
|
|
>
|
2020-07-02 02:04:28 +00:00
|
|
|
<span class="row-label">Description</span>
|
|
|
|
<p class="description">{{ release.description }}</p>
|
2020-05-21 01:44:44 +00:00
|
|
|
</div>
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
<div class="row row-tidbits">
|
|
|
|
<div
|
|
|
|
v-if="release.duration"
|
|
|
|
class="row-tidbit"
|
|
|
|
>
|
|
|
|
<span class="row-label">Duration</span>
|
|
|
|
|
2020-08-20 17:52:02 +00:00
|
|
|
<div class="duration">{{ formatDuration(release.duration) }}</div>
|
2020-07-02 02:04:28 +00:00
|
|
|
</div>
|
2020-07-01 02:47:05 +00:00
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
<div
|
|
|
|
v-if="release.shootId"
|
|
|
|
class="row-tidbit"
|
|
|
|
>
|
|
|
|
<span class="row-label">Shoot #</span>
|
|
|
|
{{ release.shootId }}
|
|
|
|
</div>
|
2020-05-21 01:44:44 +00:00
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
<div
|
|
|
|
v-if="release.studio"
|
|
|
|
class="row-tidbit"
|
|
|
|
>
|
|
|
|
<span class="row-label">Studio</span>
|
|
|
|
|
|
|
|
<router-link
|
|
|
|
:to="`/studio/${release.studio.slug}`"
|
|
|
|
class="link studio"
|
|
|
|
>{{ release.studio.name }}</router-link>
|
|
|
|
</div>
|
2020-07-02 23:28:22 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.productionDate"
|
|
|
|
class="row-tidbit"
|
|
|
|
>
|
2020-07-16 01:47:07 +00:00
|
|
|
<span class="row-label">Shoot date</span>
|
2020-07-02 23:28:22 +00:00
|
|
|
{{ formatDate(release.productionDate, 'MMMM D, YYYY') }}
|
|
|
|
</div>
|
2020-08-20 02:57:38 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="release.productionLocation"
|
|
|
|
class="row-tidbit"
|
|
|
|
>
|
|
|
|
<span class="row-label">Location</span>
|
|
|
|
<span class="location">
|
|
|
|
<span
|
|
|
|
v-if="release.productionLocation.city"
|
|
|
|
class="location-segment"
|
|
|
|
>{{ release.productionLocation.city }}, </span>
|
|
|
|
<span
|
|
|
|
v-if="release.productionLocation.state"
|
|
|
|
class="location-segment"
|
|
|
|
>{{ release.productionLocation.state }}, </span>
|
|
|
|
<span
|
|
|
|
v-if="release.productionLocation.country"
|
|
|
|
class="location-segment"
|
|
|
|
>{{ release.productionLocation.country.alias || release.productionLocation.country.name }}
|
|
|
|
<img
|
|
|
|
class="flag"
|
|
|
|
:src="`/img/flags/${release.productionLocation.country.alpha2.toLowerCase()}.svg`"
|
|
|
|
>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-05-21 01:44:44 +00:00
|
|
|
</div>
|
|
|
|
|
2020-08-20 17:52:02 +00:00
|
|
|
<div
|
|
|
|
v-if="release.clips && release.clips.length > 0"
|
|
|
|
class="row nolist"
|
|
|
|
>
|
|
|
|
<span class="row-label">Clips</span>
|
|
|
|
|
|
|
|
<Clips :clips="release.clips" />
|
|
|
|
</div>
|
|
|
|
|
2020-07-08 00:53:46 +00:00
|
|
|
<div
|
|
|
|
v-if="release.comment"
|
|
|
|
class="row"
|
|
|
|
>
|
|
|
|
<span class="row-label">Comment</span>
|
|
|
|
<span>{{ release.comment }}</span>
|
|
|
|
</div>
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
<div class="row">
|
2020-07-05 02:10:35 +00:00
|
|
|
<span class="row-label">Added</span>
|
2020-07-01 02:47:05 +00:00
|
|
|
|
2020-07-01 03:04:02 +00:00
|
|
|
<router-link
|
2020-07-02 23:28:22 +00:00
|
|
|
:to="`/added/${formatDate(release.createdAt, 'YYYY/MM/DD')}`"
|
|
|
|
:title="`Added on ${formatDate(release.createdAt, 'MMMM D, YYYY HH:mm')}`"
|
2020-05-21 01:44:44 +00:00
|
|
|
class="link added"
|
2020-10-24 22:52:40 +00:00
|
|
|
>{{ release.createdBatchId }}: {{ formatDate(release.createdAt, 'MMMM D, YYYY HH:mm') }}</router-link>
|
2020-07-02 02:04:28 +00:00
|
|
|
</div>
|
2020-05-21 01:44:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-13 04:04:04 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-06-29 23:07:48 +00:00
|
|
|
import Media from './media.vue';
|
2020-08-12 01:30:20 +00:00
|
|
|
import Details from './details.vue';
|
|
|
|
import Tags from './tags.vue';
|
2020-08-20 17:52:02 +00:00
|
|
|
import Clips from './clips.vue';
|
2020-06-29 23:07:48 +00:00
|
|
|
import Actor from '../actors/tile.vue';
|
2020-09-08 00:20:15 +00:00
|
|
|
import Releases from './releases.vue';
|
2020-06-29 02:43:39 +00:00
|
|
|
import Scroll from '../scroll/scroll.vue';
|
2020-07-01 02:47:05 +00:00
|
|
|
import Expand from '../expand/expand.vue';
|
2019-12-13 04:04:04 +00:00
|
|
|
|
2020-09-10 21:49:24 +00:00
|
|
|
async function fetchRelease() {
|
2020-09-08 00:20:15 +00:00
|
|
|
if (this.$route.name === 'scene') {
|
|
|
|
this.release = await this.$store.dispatch('fetchReleaseById', this.$route.params.releaseId);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.$route.name === 'movie') {
|
|
|
|
this.release = await this.$store.dispatch('fetchMovieById', this.$route.params.releaseId);
|
|
|
|
}
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
2020-09-10 21:49:24 +00:00
|
|
|
function pageTitle() {
|
|
|
|
return this.release
|
|
|
|
&& (this.release.title
|
|
|
|
|| (this.release.actors.length > 0 ? `${this.release.actors.map(actor => actor.name).join(', ')} for ${this.release.entity.name}` : null));
|
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
export default {
|
2020-05-21 01:44:44 +00:00
|
|
|
components: {
|
|
|
|
Actor,
|
2020-08-12 01:30:20 +00:00
|
|
|
Details,
|
2020-06-29 23:07:48 +00:00
|
|
|
Media,
|
2020-06-29 02:43:39 +00:00
|
|
|
Scroll,
|
2020-07-01 02:47:05 +00:00
|
|
|
Expand,
|
2020-09-08 00:20:15 +00:00
|
|
|
Releases,
|
2020-08-20 17:52:02 +00:00
|
|
|
Clips,
|
2020-08-12 01:30:20 +00:00
|
|
|
Tags,
|
2020-05-21 01:44:44 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
release: null,
|
2020-07-01 02:47:05 +00:00
|
|
|
expanded: false,
|
2020-05-21 01:44:44 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
pageTitle,
|
|
|
|
},
|
2020-09-10 21:49:24 +00:00
|
|
|
watch: {
|
|
|
|
$route: fetchRelease,
|
|
|
|
},
|
|
|
|
mounted: fetchRelease,
|
|
|
|
methods: {
|
|
|
|
fetchRelease,
|
|
|
|
},
|
2019-12-13 04:04:04 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-08-12 01:30:20 +00:00
|
|
|
@import 'breakpoints';
|
2020-07-01 02:47:05 +00:00
|
|
|
.expand-bottom {
|
|
|
|
border-bottom: solid 1px var(--shadow-hint);
|
|
|
|
}
|
|
|
|
|
2020-06-29 23:07:48 +00:00
|
|
|
.info {
|
|
|
|
padding: 1rem;
|
|
|
|
border-left: solid 1px var(--shadow-hint);
|
|
|
|
border-right: solid 1px var(--shadow-hint);
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
2020-07-02 23:28:22 +00:00
|
|
|
margin: 0 0 1.5rem 0;
|
2020-06-29 23:07:48 +00:00
|
|
|
|
|
|
|
&.associations {
|
|
|
|
align-items: start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-label {
|
|
|
|
display: block;
|
|
|
|
margin: 0 0 .5rem 0;
|
|
|
|
color: var(--shadow);
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin: 0 .5rem 0 0;
|
|
|
|
fill: var(--shadow);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
.row-tidbit {
|
|
|
|
display: inline-block;
|
2020-07-02 23:28:22 +00:00
|
|
|
margin: 0 2rem 0 0;
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
.title {
|
2020-07-03 02:12:56 +00:00
|
|
|
display: inline-block;
|
2020-06-29 23:07:48 +00:00
|
|
|
margin: 0;
|
2020-07-03 02:12:56 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--shadow);
|
|
|
|
padding: .25rem;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
fill: var(--primary);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.title-composed {
|
|
|
|
color: var(--shadow);
|
2020-06-29 23:07:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title-shoot {
|
|
|
|
margin: 0 0 0 .5rem;
|
|
|
|
color: var(--shadow);
|
|
|
|
font-size: .9rem;
|
|
|
|
font-weight: bold;
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
2020-03-27 03:39:13 +00:00
|
|
|
line-height: 1.5;
|
2020-07-01 02:47:05 +00:00
|
|
|
margin: -.25rem 0 0 0;
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
|
2020-01-09 01:52:20 +00:00
|
|
|
.actors {
|
2020-04-27 00:37:30 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
2020-06-29 23:07:48 +00:00
|
|
|
grid-gap: .5rem;
|
2020-03-09 04:06:37 +00:00
|
|
|
flex-grow: 1;
|
2020-01-09 01:52:20 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2020-08-12 01:30:20 +00:00
|
|
|
.movies {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
|
|
grid-gap: .5rem;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
background: var(--background);
|
|
|
|
box-shadow: 0 0 3px var(--shadow-weak);
|
|
|
|
color: var(--text);
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover .movie-title {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-cover {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.movie-title {
|
|
|
|
padding: .5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2020-08-20 02:57:38 +00:00
|
|
|
.flag {
|
|
|
|
height: 1rem;
|
|
|
|
margin: 0 0 -.15rem .1rem;
|
|
|
|
}
|
|
|
|
|
2019-12-13 04:04:04 +00:00
|
|
|
.link {
|
2020-06-30 22:25:27 +00:00
|
|
|
display: inline-flex;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.showable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.hideable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row .showable {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tidbit .showable {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2020-04-27 00:37:30 +00:00
|
|
|
.actors {
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
|
|
|
}
|
2019-12-13 04:04:04 +00:00
|
|
|
}
|
|
|
|
</style>
|