2024-02-29 04:08:54 +00:00
|
|
|
<template>
|
2024-03-26 03:14:42 +00:00
|
|
|
<div class="page">
|
|
|
|
<div class="profile">
|
|
|
|
<div class="profile-header">
|
|
|
|
<div class="user">
|
|
|
|
<img
|
|
|
|
v-if="profile.avatar"
|
|
|
|
:src="profile.avatar"
|
|
|
|
class="avatar"
|
|
|
|
>
|
|
|
|
|
|
|
|
<h2 class="username ellipsis">{{ profile.username }}</h2>
|
|
|
|
</div>
|
2024-03-03 01:33:35 +00:00
|
|
|
|
2024-03-26 23:06:03 +00:00
|
|
|
<span class="age">{{ formatDistanceStrict(Date.now(), profile.createdAt) }}</span>
|
2024-03-26 03:14:42 +00:00
|
|
|
</div>
|
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
<nav
|
2024-05-19 03:07:35 +00:00
|
|
|
v-if="profile.id === user?.id"
|
2024-11-03 00:56:51 +00:00
|
|
|
class="domains nobar"
|
|
|
|
@wheel.prevent="scrollHorizontal"
|
2024-05-19 03:07:35 +00:00
|
|
|
>
|
2024-08-31 23:30:45 +00:00
|
|
|
<a
|
|
|
|
:href="`/user/${profile.username}/stashes`"
|
|
|
|
class="domain nolink"
|
2024-10-22 23:28:54 +00:00
|
|
|
:class="{ active: section === 'stashes' }"
|
2024-08-31 23:30:45 +00:00
|
|
|
>Stashes</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/user/${profile.username}/alerts`"
|
|
|
|
class="domain nolink"
|
2024-10-22 23:28:54 +00:00
|
|
|
:class="{ active: section === 'alerts' }"
|
2024-08-31 23:30:45 +00:00
|
|
|
>Alerts</a>
|
2024-09-01 00:54:03 +00:00
|
|
|
|
|
|
|
<a
|
2024-09-01 22:18:39 +00:00
|
|
|
:href="`/user/${profile.username}/templates`"
|
2024-09-01 00:54:03 +00:00
|
|
|
class="domain nolink"
|
2024-10-22 23:28:54 +00:00
|
|
|
:class="{ active: section === 'templates' }"
|
2024-09-01 22:18:39 +00:00
|
|
|
>Templates</a>
|
2024-10-06 00:45:56 +00:00
|
|
|
|
|
|
|
<a
|
2024-10-22 23:28:54 +00:00
|
|
|
:href="`/user/${profile.username}/revisions/scenes`"
|
2024-10-06 00:45:56 +00:00
|
|
|
class="domain nolink"
|
2024-10-22 23:28:54 +00:00
|
|
|
:class="{ active: section === 'revisions' && domain === 'scenes' }"
|
|
|
|
>Scene Revisions</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/user/${profile.username}/revisions/actors`"
|
|
|
|
class="domain nolink"
|
|
|
|
:class="{ active: section === 'revisions' && domain === 'actors' }"
|
|
|
|
>Actor Revisions</a>
|
2024-08-31 23:30:45 +00:00
|
|
|
</nav>
|
|
|
|
|
2024-10-22 23:28:54 +00:00
|
|
|
<Stashes v-if="section === 'stashes'" />
|
|
|
|
<Alerts v-if="section === 'alerts' && profile.id === user?.id" />
|
2024-09-01 00:54:03 +00:00
|
|
|
|
|
|
|
<Summaries
|
2024-10-22 23:28:54 +00:00
|
|
|
v-if="section === 'templates' && profile.id === user?.id"
|
2024-09-01 00:54:03 +00:00
|
|
|
:release="mockupRelease"
|
|
|
|
/>
|
2024-03-26 03:14:42 +00:00
|
|
|
</div>
|
2024-10-06 00:45:56 +00:00
|
|
|
|
|
|
|
<div
|
2024-10-22 23:28:54 +00:00
|
|
|
v-if="section === 'revisions' && profile.id === user?.id"
|
2024-10-06 00:45:56 +00:00
|
|
|
class="profile-section revisions"
|
|
|
|
>
|
2024-10-22 23:28:54 +00:00
|
|
|
<h3 class="section-header heading">{{ domain.slice(0, -1) }} Revisions</h3>
|
2024-10-08 19:30:55 +00:00
|
|
|
<Revisions context="user" />
|
2024-10-06 00:45:56 +00:00
|
|
|
</div>
|
2024-02-29 04:08:54 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-03-26 02:00:50 +00:00
|
|
|
import { ref, inject } from 'vue';
|
2024-03-26 03:14:42 +00:00
|
|
|
import { formatDistanceStrict } from 'date-fns';
|
2024-03-26 02:00:50 +00:00
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
import Stashes from '#/components/stashes/stashes.vue';
|
|
|
|
import Alerts from '#/components/alerts/alerts.vue';
|
2024-09-01 00:54:03 +00:00
|
|
|
import Summaries from '#/components/scenes/summaries.vue';
|
2024-10-06 00:45:56 +00:00
|
|
|
import Revisions from '#/components/edit/revisions.vue';
|
2024-03-26 03:14:42 +00:00
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
const pageContext = inject('pageContext');
|
2024-10-22 23:28:54 +00:00
|
|
|
|
|
|
|
const section = pageContext.routeParams.section;
|
2024-08-31 23:30:45 +00:00
|
|
|
const domain = pageContext.routeParams.domain;
|
2024-10-22 23:28:54 +00:00
|
|
|
|
2024-04-02 03:55:53 +00:00
|
|
|
const user = pageContext.user;
|
2024-03-26 02:00:50 +00:00
|
|
|
const profile = ref(pageContext.pageProps.profile);
|
2024-09-01 00:54:03 +00:00
|
|
|
|
|
|
|
const mockupRelease = {
|
|
|
|
id: 1,
|
|
|
|
title: 'Nut For Human Consumption',
|
|
|
|
effectiveDate: new Date(),
|
|
|
|
actors: [
|
|
|
|
{
|
|
|
|
name: 'Chanel Chakra',
|
|
|
|
gender: 'female',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mo The Fucker',
|
|
|
|
gender: 'male',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
tags: [
|
|
|
|
{ name: 'anal' },
|
|
|
|
{ name: 'facefucking' },
|
|
|
|
{ name: 'deepthroat' },
|
|
|
|
{ name: 'blowjob' },
|
|
|
|
{ name: 'facial' },
|
|
|
|
],
|
|
|
|
movies: [{
|
|
|
|
title: 'Best Of Traxxx 23',
|
|
|
|
}],
|
|
|
|
channel: {
|
|
|
|
name: 'Traxxxed',
|
|
|
|
},
|
|
|
|
network: {
|
|
|
|
name: 'Traxxx',
|
|
|
|
},
|
|
|
|
};
|
2024-11-03 00:56:51 +00:00
|
|
|
|
|
|
|
function scrollHorizontal(event) {
|
|
|
|
event.currentTarget.scrollLeft += event.deltaY; // eslint-disable-line no-param-reassign
|
|
|
|
}
|
2024-08-31 23:30:45 +00:00
|
|
|
</script>
|
2024-03-26 02:00:50 +00:00
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
<style>
|
|
|
|
.profile-section {
|
|
|
|
.section-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2024-09-01 22:18:39 +00:00
|
|
|
padding: .5rem 1rem;
|
2024-10-22 23:28:54 +00:00
|
|
|
text-transform: capitalize;
|
2024-05-19 03:07:35 +00:00
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
.button {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
2024-05-19 03:07:35 +00:00
|
|
|
}
|
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
.heading {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2024-05-19 03:07:35 +00:00
|
|
|
|
2024-09-01 22:18:39 +00:00
|
|
|
@media(--small-20) {
|
2024-08-31 23:30:45 +00:00
|
|
|
.profile-section .section-header {
|
2024-09-01 22:18:39 +00:00
|
|
|
padding: .5rem;
|
2024-05-19 03:07:35 +00:00
|
|
|
}
|
|
|
|
}
|
2024-08-31 23:30:45 +00:00
|
|
|
</style>
|
2024-02-29 04:08:54 +00:00
|
|
|
|
|
|
|
<style scoped>
|
2024-03-26 03:14:42 +00:00
|
|
|
.page {
|
|
|
|
display: flex;
|
2024-10-06 00:45:56 +00:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2024-03-26 03:14:42 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
background: var(--background-base-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile {
|
2024-09-01 00:54:03 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-03-26 03:14:42 +00:00
|
|
|
width: 1200px;
|
|
|
|
max-width: 100%;
|
2024-09-01 22:18:39 +00:00
|
|
|
margin: 0 .5rem;
|
2024-03-26 03:14:42 +00:00
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.profile-header {
|
|
|
|
display: flex;
|
2024-03-26 03:14:42 +00:00
|
|
|
justify-content: space-between;
|
2024-02-29 04:08:54 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
color: var(--highlight-strong-30);
|
2024-06-10 01:24:48 +00:00
|
|
|
background: var(--shadow-strong-30);
|
2024-03-26 03:14:42 +00:00
|
|
|
border-radius: 0 0 .5rem .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
|
|
|
margin: 0;
|
2024-03-26 02:00:50 +00:00
|
|
|
font-size: 1.25rem;
|
2024-02-29 04:08:54 +00:00
|
|
|
}
|
|
|
|
|
2024-03-26 03:14:42 +00:00
|
|
|
.age {
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
2024-03-26 23:06:03 +00:00
|
|
|
font-size: .9rem;
|
2024-03-26 03:14:42 +00:00
|
|
|
|
|
|
|
.icon {
|
2024-03-26 23:06:03 +00:00
|
|
|
width: .9rem;
|
2024-03-26 03:14:42 +00:00
|
|
|
fill: var(--highlight-strong-20);
|
|
|
|
margin-right: .75rem;
|
|
|
|
transform: translateY(-1px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-29 04:08:54 +00:00
|
|
|
.avatar {
|
2024-03-26 02:00:50 +00:00
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
2024-02-29 04:08:54 +00:00
|
|
|
border-radius: .25rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
2024-03-03 01:33:35 +00:00
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
.domains {
|
2024-05-28 03:49:28 +00:00
|
|
|
display: flex;
|
|
|
|
gap: .5rem;
|
2024-08-31 23:30:45 +00:00
|
|
|
padding: .5rem 0;
|
2024-09-01 00:54:03 +00:00
|
|
|
margin-top: .25rem;
|
2024-09-01 22:18:39 +00:00
|
|
|
overflow-x: auto;
|
2024-08-31 22:43:21 +00:00
|
|
|
}
|
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
.domain {
|
2024-11-03 00:56:51 +00:00
|
|
|
flex-shrink: 0;
|
2024-08-31 23:30:45 +00:00
|
|
|
color: var(--glass-strong-20);
|
|
|
|
background: var(--background-dark-20);
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
border-radius: 1rem;
|
2024-05-28 03:49:28 +00:00
|
|
|
font-size: .9rem;
|
2024-08-31 23:30:45 +00:00
|
|
|
font-weight: bold;
|
2024-05-19 03:07:35 +00:00
|
|
|
|
2024-08-31 23:30:45 +00:00
|
|
|
&.active {
|
|
|
|
background: var(--primary);
|
|
|
|
color: var(--text-light);
|
2024-08-31 22:43:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-06 00:45:56 +00:00
|
|
|
.revisions {
|
|
|
|
width: 100%; /* necessary for FF */
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
2024-10-22 23:28:54 +00:00
|
|
|
.revisions-nav {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-09-01 22:18:39 +00:00
|
|
|
@media(--compact) {
|
|
|
|
.domains {
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
}
|
|
|
|
|
2024-09-01 00:54:03 +00:00
|
|
|
.profile {
|
2024-09-01 22:18:39 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile-header {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--small-20) {
|
|
|
|
.profile-header {
|
|
|
|
padding: .5rem;
|
2024-09-01 00:54:03 +00:00
|
|
|
}
|
|
|
|
|
2024-09-01 22:18:39 +00:00
|
|
|
.domains {
|
|
|
|
padding: .5rem .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.age .icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--small-30) {
|
2024-03-26 03:14:42 +00:00
|
|
|
.age .icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--small-50) {
|
|
|
|
.age {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2024-02-29 04:08:54 +00:00
|
|
|
</style>
|