Compare commits
No commits in common. "f3d55806d1a93fa7bf8cb137c2d6393a7db7fc3e" and "cc27f202af38efc2e233308fa446685c860672d6" have entirely different histories.
f3d55806d1
...
cc27f202af
|
|
@ -27,7 +27,7 @@
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
:src="getPath(item, 'thumbnail', { local })"
|
:src="getPath(item, 'thumbnail', { local })"
|
||||||
:style="{ 'background-image': getBgPath(item, 'lazy', { local }) }"
|
:style="{ 'background-image': `url('${getPath(item, 'lazy', { local })}')` }"
|
||||||
:width="item.thumbnailWidth"
|
:width="item.thumbnailWidth"
|
||||||
:height="item.thumbnailHeight"
|
:height="item.thumbnailHeight"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<ul class="rules">
|
<ul class="rules">
|
||||||
<li class="rule">You are at least 18 years old, and legally permitted to view adult material in your jurisdiction.</li>
|
<li class="rule">You are at least 18 years old, and legally permitted to view adult material in your jurisdiction.</li>
|
||||||
<li class="rule">You do not regard erotic and frankly pornographic media as obscene or offensive.</li>
|
<li class="rule">You do not regard erotic, sexual and pornographic material as obscene or offensive.</li>
|
||||||
<li class="rule">You understand that most sexual scenarios depicted on this website are fictional, performed by professional actors for the purpose of entertainment, and not representative of real-life interactions.</li>
|
<li class="rule">You understand that most sexual scenarios depicted on this website are fictional, performed by professional actors for the purpose of entertainment, and not representative of real-life interactions.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,14 @@
|
||||||
v-show="me && isStashed"
|
v-show="me && isStashed"
|
||||||
icon="heart7"
|
icon="heart7"
|
||||||
class="stash stashed noselect"
|
class="stash stashed noselect"
|
||||||
@click="unstashScene"
|
@click="unstashRelease"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Icon
|
<Icon
|
||||||
v-show="me && !isStashed"
|
v-show="me && !isStashed"
|
||||||
icon="heart8"
|
icon="heart8"
|
||||||
class="stash unstashed noselect"
|
class="stash unstashed noselect"
|
||||||
@click="stashScene"
|
@click="stashRelease"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -251,8 +251,8 @@ async function fetchRelease(scroll = true) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function stashScene() {
|
async function stashRelease() {
|
||||||
this.$store.dispatch(this.$route.name === 'movie' ? 'stashMovie' : 'stashScene', {
|
this.$store.dispatch(this.$route.name === 'movie' ? 'stashMovie' : 'stashRelease', {
|
||||||
sceneId: this.release.id,
|
sceneId: this.release.id,
|
||||||
movieId: this.release.id,
|
movieId: this.release.id,
|
||||||
stashId: this.$store.getters.favorites.id,
|
stashId: this.$store.getters.favorites.id,
|
||||||
|
|
@ -261,8 +261,8 @@ async function stashScene() {
|
||||||
this.fetchRelease(false);
|
this.fetchRelease(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function unstashScene() {
|
async function unstashRelease() {
|
||||||
this.$store.dispatch(this.$route.name === 'movie' ? 'unstashMovie' : 'unstashScene', {
|
this.$store.dispatch(this.$route.name === 'movie' ? 'unstashMovie' : 'unstashRelease', {
|
||||||
sceneId: this.release.id,
|
sceneId: this.release.id,
|
||||||
movieId: this.release.id,
|
movieId: this.release.id,
|
||||||
stashId: this.$store.getters.favorites.id,
|
stashId: this.$store.getters.favorites.id,
|
||||||
|
|
@ -323,8 +323,8 @@ export default {
|
||||||
mounted: fetchRelease,
|
mounted: fetchRelease,
|
||||||
methods: {
|
methods: {
|
||||||
fetchRelease,
|
fetchRelease,
|
||||||
stashScene,
|
stashRelease,
|
||||||
unstashScene,
|
unstashRelease,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,115 +0,0 @@
|
||||||
<template>
|
|
||||||
<div
|
|
||||||
v-if="stash"
|
|
||||||
class="stash content"
|
|
||||||
>
|
|
||||||
<div class="stash-header">
|
|
||||||
<h2 class="stash-name">{{ stash.name }}</h2>
|
|
||||||
|
|
||||||
<router-link
|
|
||||||
v-if="stash.user"
|
|
||||||
:to="{ name: 'user', params: { username: stash.user.username } }"
|
|
||||||
class="stash-username nolink"
|
|
||||||
><Icon icon="user3" />{{ stash.user.username }}</router-link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content-inner">
|
|
||||||
<ul
|
|
||||||
v-if="stash.scenes?.length > 0"
|
|
||||||
class="stash-section stash-scenes nolist"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
v-for="item in stash.scenes"
|
|
||||||
:key="item.id"
|
|
||||||
><Scene :release="item.scene" /></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul
|
|
||||||
v-if="stash.actors?.length > 0"
|
|
||||||
class="stash-section stash-actors nolist"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
v-for="item in stash.actors"
|
|
||||||
:key="item.id"
|
|
||||||
><Actor :actor="item.actor" /></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import Actor from '../actors/tile.vue';
|
|
||||||
import Scene from '../releases/scene-tile.vue';
|
|
||||||
|
|
||||||
async function fetchStash() {
|
|
||||||
this.stash = await this.$store.dispatch('fetchStash', this.$route.params.stashId);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function mounted() {
|
|
||||||
this.fetchStash();
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
Actor,
|
|
||||||
Scene,
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
stash: null,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted,
|
|
||||||
methods: {
|
|
||||||
fetchStash,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.stash-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
background: var(--profile);
|
|
||||||
color: var(--text-light);
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-name,
|
|
||||||
.stash-username {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: .5rem 1rem;
|
|
||||||
margin: 0;
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
fill: var(--text-light);
|
|
||||||
margin: -.1rem .5rem 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-section {
|
|
||||||
padding: 1rem;
|
|
||||||
|
|
||||||
&:not(:last-child) {
|
|
||||||
border-bottom: solid 1px var(--shadow-hint);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-actors,
|
|
||||||
.stash-scenes {
|
|
||||||
display: grid;
|
|
||||||
flex-grow: 1;
|
|
||||||
grid-gap: .5rem;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-actors {
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-scenes {
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
:src="getPath(photo, 'thumbnail', { local: true })"
|
:src="getPath(photo, 'thumbnail', { local: true })"
|
||||||
:style="{ 'background-image': getBgPath(photo, 'lazy', { local: true }) }"
|
:style="{ 'background-image': `url(${getPath(photo, 'lazy', { local: true })})` }"
|
||||||
:alt="photo.comment"
|
:alt="photo.comment"
|
||||||
:width="photo.thumbnailWidth"
|
:width="photo.thumbnailWidth"
|
||||||
:height="photo.thumbnailHeight"
|
:height="photo.thumbnailHeight"
|
||||||
|
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
<template>
|
|
||||||
<router-link
|
|
||||||
:to="`/actor/${actor.id}/${actor.slug}`"
|
|
||||||
class="actor nolink"
|
|
||||||
>
|
|
||||||
<div class="avatar">
|
|
||||||
<img
|
|
||||||
v-if="actor.avatar"
|
|
||||||
:src="getPath(actor.avatar)"
|
|
||||||
class="avatar-image"
|
|
||||||
>
|
|
||||||
|
|
||||||
<Icon
|
|
||||||
v-else-if="actor.gender"
|
|
||||||
:icon="actor.gender"
|
|
||||||
class="avatar-fallback"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span class="name">{{ actor.name }}</span>
|
|
||||||
</router-link>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
async function unstashActor(actorId, stashId) {
|
|
||||||
await this.$store.dispatch('unstashActor', { actorId, stashId });
|
|
||||||
|
|
||||||
this.$emit('unstash');
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
actor: {
|
|
||||||
type: Object,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
stash: {
|
|
||||||
type: Object,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
unstashActor,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.actor {
|
|
||||||
height: 2.5rem;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
border: solid 1px var(--shadow-hint);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border: solid 1px var(--primary);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 2rem;
|
|
||||||
height: 100%;
|
|
||||||
background: var(--profile);
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-image {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
object-position: 50% 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-fallback {
|
|
||||||
fill: var(--lighten-weak);
|
|
||||||
}
|
|
||||||
|
|
||||||
.name {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
height: 100%;
|
|
||||||
padding: 0 .5rem;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -1,108 +0,0 @@
|
||||||
<template>
|
|
||||||
<a
|
|
||||||
:href="`/scene/${scene.id}/${scene.slug || ''}`"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="scene nolink"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
:src="getPath(scene.poster, 'thumbnail')"
|
|
||||||
class="scene-poster"
|
|
||||||
>
|
|
||||||
|
|
||||||
<div class="scene-header">
|
|
||||||
<span class="scene-actors nolist">{{ scene.actors.map(actor => actor.name).join(', ') }}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="scene-footer">
|
|
||||||
<img
|
|
||||||
:src="`/img/logos/${scene.entity.parent.slug}/favicon_light.png`"
|
|
||||||
class="scene-favicon"
|
|
||||||
>
|
|
||||||
|
|
||||||
<span class="scene-title">{{ scene.title }}</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
scene: {
|
|
||||||
type: Object,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
stash: {
|
|
||||||
type: Object,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.scene {
|
|
||||||
width: 14rem;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
font-size: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-poster {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
object-position: 50% 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-header,
|
|
||||||
.scene-footer {
|
|
||||||
width: 100%;
|
|
||||||
height: 1.25rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
background: var(--shadow-weak);
|
|
||||||
color: var(--text-light);
|
|
||||||
font-size: .7rem;
|
|
||||||
font-weight: bold;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-header {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-footer {
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-title {
|
|
||||||
padding: .25rem .5rem;
|
|
||||||
text-shadow: 0 0 2px var(--shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-actors {
|
|
||||||
padding: 0 .5rem;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-unstash {
|
|
||||||
fill: var(--lighten-strong);
|
|
||||||
padding: .25rem;
|
|
||||||
filter: drop-shadow(0 0 1px var(--shadow));
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
fill: var(--text-light);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.scene-favicon {
|
|
||||||
width: 1rem;
|
|
||||||
height: 1rem;
|
|
||||||
padding: .1rem 0 0 .25rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -19,28 +19,16 @@
|
||||||
:key="stash.id"
|
:key="stash.id"
|
||||||
class="stash"
|
class="stash"
|
||||||
>
|
>
|
||||||
<router-link
|
<h4 class="stash-name">{{ stash.name }}</h4>
|
||||||
:to="{ name: 'stash', params: { stashId: stash.id, stashSlug: stash.slug } }"
|
|
||||||
class="stash-link stash-section"
|
|
||||||
>
|
|
||||||
<h4 class="stash-name">{{ stash.name }}</h4>
|
|
||||||
</router-link>
|
|
||||||
|
|
||||||
<ul
|
<ul
|
||||||
v-if="stash.scenes?.length > 0"
|
v-if="stash.scenes?.length > 0"
|
||||||
class="stash-section stash-scenes nolist"
|
class="stash-section stash-scenes nolist"
|
||||||
>
|
>
|
||||||
<li
|
<li
|
||||||
v-for="{ scene } in stash.scenes"
|
v-for="item in stash.scenes"
|
||||||
:key="scene.id"
|
:key="item.id"
|
||||||
class="stash-scene"
|
><Scene :release="item.scene" /></li>
|
||||||
>
|
|
||||||
<ScenePreview
|
|
||||||
:scene="scene"
|
|
||||||
:stash="stash"
|
|
||||||
@unstash="fetchUser"
|
|
||||||
/>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul
|
<ul
|
||||||
|
|
@ -48,16 +36,9 @@
|
||||||
class="stash-section stash-actors nolist"
|
class="stash-section stash-actors nolist"
|
||||||
>
|
>
|
||||||
<li
|
<li
|
||||||
v-for="{ actor } in stash.actors"
|
v-for="item in stash.actors"
|
||||||
:key="actor.id"
|
:key="item.id"
|
||||||
class="stash-actor"
|
><Actor :actor="item.actor" /></li>
|
||||||
>
|
|
||||||
<ActorPreview
|
|
||||||
:actor="actor"
|
|
||||||
:stash="stash"
|
|
||||||
@unstash="fetchUser"
|
|
||||||
/>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -66,22 +47,18 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ActorPreview from './actor-preview.vue';
|
import Actor from '../actors/tile.vue';
|
||||||
import ScenePreview from './scene-preview.vue';
|
import Scene from '../releases/scene-tile.vue';
|
||||||
|
|
||||||
async function fetchUser() {
|
async function mounted() {
|
||||||
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username);
|
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username);
|
||||||
this.pageTitle = this.user?.username;
|
this.pageTitle = this.user?.username;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mounted() {
|
|
||||||
await this.fetchUser();
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ActorPreview,
|
Actor,
|
||||||
ScenePreview,
|
Scene,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -92,9 +69,6 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted,
|
mounted,
|
||||||
methods: {
|
|
||||||
fetchUser,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -115,34 +89,25 @@ export default {
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stashes {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.stash {
|
.stash {
|
||||||
min-width: 0;
|
width: 100%;
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1rem 0;
|
||||||
box-shadow: 0 0 3px var(--shadow-weak);
|
box-shadow: 0 0 3px var(--shadow-weak);
|
||||||
}
|
}
|
||||||
|
|
||||||
.stash-link.stash-section {
|
|
||||||
display: block;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-name {
|
.stash-name {
|
||||||
color: var(--shadow-strong);
|
color: var(--shadow-strong);
|
||||||
|
padding: 1rem .5rem 0 .5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stash-section {
|
.stash-section {
|
||||||
padding: .5rem;
|
padding: 1rem .5rem;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: solid 1px var(--shadow-hint);
|
border-bottom: solid 1px var(--shadow-hint);
|
||||||
|
|
@ -151,27 +116,17 @@ export default {
|
||||||
|
|
||||||
.stash-actors,
|
.stash-actors,
|
||||||
.stash-scenes {
|
.stash-scenes {
|
||||||
display: flex;
|
display: grid;
|
||||||
overflow-x: auto;
|
flex-grow: 1;
|
||||||
scroll-behavior: smooth;
|
|
||||||
scrollbar-width: none;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.stash-scenes {
|
|
||||||
height: 8rem;
|
|
||||||
grid-gap: .5rem;
|
grid-gap: .5rem;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stash-actors {
|
.stash-actors {
|
||||||
grid-gap: 1rem;
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.stash-actor,
|
.stash-scenes {
|
||||||
.stash-scene {
|
grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,6 @@ async function init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPath(media, type, options) {
|
function getPath(media, type, options) {
|
||||||
if (!media) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const path = getBasePath(media, type, options);
|
const path = getBasePath(media, type, options);
|
||||||
const filename = getFilename(media, type, options);
|
const filename = getFilename(media, type, options);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ import Actors from '../components/actors/actors.vue';
|
||||||
import Movies from '../components/releases/movies.vue';
|
import Movies from '../components/releases/movies.vue';
|
||||||
import Tag from '../components/tags/tag.vue';
|
import Tag from '../components/tags/tag.vue';
|
||||||
import Tags from '../components/tags/tags.vue';
|
import Tags from '../components/tags/tags.vue';
|
||||||
import Stash from '../components/stashes/stash.vue';
|
|
||||||
import Search from '../components/search/search.vue';
|
import Search from '../components/search/search.vue';
|
||||||
import Stats from '../components/stats/stats.vue';
|
import Stats from '../components/stats/stats.vue';
|
||||||
import NotFound from '../components/errors/404.vue';
|
import NotFound from '../components/errors/404.vue';
|
||||||
|
|
@ -202,11 +201,6 @@ const routes = [
|
||||||
component: Tags,
|
component: Tags,
|
||||||
name: 'tags',
|
name: 'tags',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/stash/:stashId/:stashSlug?',
|
|
||||||
component: Stash,
|
|
||||||
name: 'stash',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/search',
|
path: '/search',
|
||||||
component: Search,
|
component: Search,
|
||||||
|
|
|
||||||
|
|
@ -1,62 +1,6 @@
|
||||||
import { graphql, post, del } from '../api';
|
import { post, del } from '../api';
|
||||||
import { releaseFields } from '../fragments';
|
|
||||||
import { curateStash } from '../curate';
|
|
||||||
|
|
||||||
function initStashesActions(_store, _router) {
|
function initStashesActions(_store, _router) {
|
||||||
async function fetchStash(context, stashId) {
|
|
||||||
const { stash } = await graphql(`
|
|
||||||
query Stash(
|
|
||||||
$stashId: Int!
|
|
||||||
) {
|
|
||||||
stash(id: $stashId) {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
slug
|
|
||||||
public
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
actors: stashesActors {
|
|
||||||
comment
|
|
||||||
actor {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
slug
|
|
||||||
gender
|
|
||||||
age
|
|
||||||
ageFromBirth
|
|
||||||
dateOfBirth
|
|
||||||
birthCity
|
|
||||||
birthState
|
|
||||||
birthCountry: countryByBirthCountryAlpha2 {
|
|
||||||
alpha2
|
|
||||||
name
|
|
||||||
alias
|
|
||||||
}
|
|
||||||
avatar: avatarMedia {
|
|
||||||
id
|
|
||||||
path
|
|
||||||
thumbnail
|
|
||||||
lazy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
scenes: stashesScenes {
|
|
||||||
comment
|
|
||||||
scene {
|
|
||||||
${releaseFields}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`, {
|
|
||||||
stashId: Number(stashId),
|
|
||||||
});
|
|
||||||
|
|
||||||
return curateStash(stash);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function stashActor(context, { actorId, stashId }) {
|
async function stashActor(context, { actorId, stashId }) {
|
||||||
await post(`/stashes/${stashId}/actors`, { actorId });
|
await post(`/stashes/${stashId}/actors`, { actorId });
|
||||||
}
|
}
|
||||||
|
|
@ -82,7 +26,6 @@ function initStashesActions(_store, _router) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fetchStash,
|
|
||||||
stashActor,
|
stashActor,
|
||||||
stashScene,
|
stashScene,
|
||||||
stashMovie,
|
stashMovie,
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ function initUsersActions(_store, _router) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scenes: stashesScenes(first: 20) {
|
scenes: stashesScenes {
|
||||||
comment
|
comment
|
||||||
scene {
|
scene {
|
||||||
${releaseFields}
|
${releaseFields}
|
||||||
|
|
|
||||||
|
|
@ -1087,10 +1087,6 @@ exports.up = knex => Promise.resolve()
|
||||||
table.unique(['stash_id', 'scene_id']);
|
table.unique(['stash_id', 'scene_id']);
|
||||||
|
|
||||||
table.string('comment');
|
table.string('comment');
|
||||||
|
|
||||||
table.datetime('created_at')
|
|
||||||
.notNullable()
|
|
||||||
.defaultTo(knex.fn.now());
|
|
||||||
}))
|
}))
|
||||||
.then(() => knex.schema.createTable('stashes_movies', (table) => {
|
.then(() => knex.schema.createTable('stashes_movies', (table) => {
|
||||||
table.integer('stash_id')
|
table.integer('stash_id')
|
||||||
|
|
@ -1108,10 +1104,6 @@ exports.up = knex => Promise.resolve()
|
||||||
table.unique(['stash_id', 'movie_id']);
|
table.unique(['stash_id', 'movie_id']);
|
||||||
|
|
||||||
table.string('comment');
|
table.string('comment');
|
||||||
|
|
||||||
table.datetime('created_at')
|
|
||||||
.notNullable()
|
|
||||||
.defaultTo(knex.fn.now());
|
|
||||||
}))
|
}))
|
||||||
.then(() => knex.schema.createTable('stashes_actors', (table) => {
|
.then(() => knex.schema.createTable('stashes_actors', (table) => {
|
||||||
table.integer('stash_id')
|
table.integer('stash_id')
|
||||||
|
|
@ -1129,10 +1121,6 @@ exports.up = knex => Promise.resolve()
|
||||||
table.unique(['stash_id', 'actor_id']);
|
table.unique(['stash_id', 'actor_id']);
|
||||||
|
|
||||||
table.string('comment');
|
table.string('comment');
|
||||||
|
|
||||||
table.datetime('created_at')
|
|
||||||
.notNullable()
|
|
||||||
.defaultTo(knex.fn.now());
|
|
||||||
}))
|
}))
|
||||||
// SEARCH
|
// SEARCH
|
||||||
.then(() => { // eslint-disable-line arrow-body-style
|
.then(() => { // eslint-disable-line arrow-body-style
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.187.0",
|
"version": "1.186.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "1.187.0",
|
"version": "1.186.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.187.0",
|
"version": "1.186.3",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue