2019-06-03 03:31:38 +00:00
|
|
|
<template>
|
2019-11-10 03:20:22 +00:00
|
|
|
<div
|
|
|
|
v-if="actor"
|
|
|
|
class="content actor"
|
|
|
|
>
|
2019-11-15 04:10:59 +00:00
|
|
|
<FilterBar :fetch-releases="fetchReleases" />
|
|
|
|
|
2019-11-10 03:20:22 +00:00
|
|
|
<div class="header">
|
|
|
|
<h2 class="title">{{ actor.name }}</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="description">{{ actor.description }}</span>
|
|
|
|
|
|
|
|
<div class="content-inner">
|
|
|
|
<h3 class="heading">Biography</h3>
|
|
|
|
|
|
|
|
<ul class="bio">
|
|
|
|
<li v-if="actor.aliases.length">
|
|
|
|
<dfn class="bio-heading">Also known as</dfn>
|
|
|
|
<span>{{ actor.aliases.join(', ') }}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<dfn class="bio-heading">Born in</dfn>
|
|
|
|
<span v-if="actor.city">{{ actor.city }}</span>
|
|
|
|
<span>{{ actor.country || 'Unknown' }}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<dfn class="bio-heading">Date of birth</dfn>
|
|
|
|
<span>{{ actor.birthdate || 'Unknown' }}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<dfn class="bio-heading">Ethnicity</dfn>
|
|
|
|
<span>{{ actor.ethnicity || 'Unknown' }}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<dfn class="bio-heading">Height</dfn>
|
|
|
|
<span>{{ actor.height || 'Unknown' }}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<dfn class="bio-heading">Boobs</dfn>
|
|
|
|
<span>Size: {{ actor.boobSize || 'Unknown' }}</span>
|
|
|
|
<span v-if="actor.boobsNatural !== null">{{ actor.boobsNatural ? 'Natural' : 'Enhanced' }}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2019-11-16 02:33:36 +00:00
|
|
|
<Releases
|
|
|
|
:releases="releases"
|
|
|
|
:context="actor.name"
|
|
|
|
/>
|
2019-11-10 03:20:22 +00:00
|
|
|
</div>
|
2019-06-03 03:31:38 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2019-11-10 03:20:22 +00:00
|
|
|
|
|
|
|
<script>
|
2019-11-15 04:10:59 +00:00
|
|
|
import FilterBar from '../header/filter-bar.vue';
|
2019-11-16 02:33:36 +00:00
|
|
|
import Releases from '../releases/releases.vue';
|
2019-11-10 03:20:22 +00:00
|
|
|
|
2019-11-15 04:10:59 +00:00
|
|
|
async function fetchReleases() {
|
2019-11-10 03:20:22 +00:00
|
|
|
this.releases = await this.$store.dispatch('fetchActorReleases', this.$route.params.actorSlug);
|
2019-11-15 04:10:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async function mounted() {
|
|
|
|
[[this.actor]] = await Promise.all([
|
|
|
|
this.$store.dispatch('fetchActors', this.$route.params.actorSlug),
|
|
|
|
this.fetchReleases(),
|
|
|
|
]);
|
2019-11-10 03:20:22 +00:00
|
|
|
|
|
|
|
this.pageTitle = this.actor.name;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2019-11-15 04:10:59 +00:00
|
|
|
FilterBar,
|
2019-11-16 02:33:36 +00:00
|
|
|
Releases,
|
2019-11-10 03:20:22 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
actor: null,
|
|
|
|
releases: null,
|
|
|
|
pageTitle: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted,
|
2019-11-15 04:10:59 +00:00
|
|
|
methods: {
|
|
|
|
fetchReleases,
|
|
|
|
},
|
2019-11-10 03:20:22 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.heading {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bio-heading {
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: .5rem 0 0 0;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: ':';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|