forked from DebaucheryLibrarian/traxxx
Moved movies to separate table.
This commit is contained in:
@@ -175,7 +175,6 @@ const releaseFields = `
|
||||
date
|
||||
datePrecision
|
||||
slug
|
||||
type
|
||||
shootId
|
||||
productionDate
|
||||
comment
|
||||
@@ -218,18 +217,6 @@ const releasesFragment = `
|
||||
) {
|
||||
releases: nodes {
|
||||
${releaseFields}
|
||||
movieActors: movieActorsByMovieId(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
||||
actor {
|
||||
${actorFields}
|
||||
}
|
||||
}
|
||||
movieTags: movieTagsByMovieId(orderBy: TAG_BY_TAG_ID__PRIORITY_DESC) {
|
||||
tag {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
totalCount
|
||||
}
|
||||
@@ -256,37 +243,6 @@ const releaseFragment = `
|
||||
${releaseTrailerFragment}
|
||||
${releaseTeaserFragment}
|
||||
${siteFragment}
|
||||
movieActors: movieActorsByMovieId(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
||||
actor {
|
||||
${actorFields}
|
||||
}
|
||||
}
|
||||
movieTags: movieTagsByMovieId(orderBy: TAG_BY_TAG_ID__PRIORITY_DESC) {
|
||||
tag {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
movies: releasesMoviesBySceneId {
|
||||
movie {
|
||||
id
|
||||
title
|
||||
date
|
||||
slug
|
||||
createdAt
|
||||
url
|
||||
${releaseCoversFragment}
|
||||
${siteFragment}
|
||||
actors: movieActorsByMovieId {
|
||||
actor {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scenes: releasesMoviesByMovieId {
|
||||
scene {
|
||||
${releaseFields}
|
||||
|
||||
@@ -7,6 +7,7 @@ import Entity from '../components/entities/entity.vue';
|
||||
import Networks from '../components/networks/networks.vue';
|
||||
import Actor from '../components/actors/actor.vue';
|
||||
import Actors from '../components/actors/actors.vue';
|
||||
import Movies from '../components/movies/movies.vue';
|
||||
import Tag from '../components/tags/tag.vue';
|
||||
import Tags from '../components/tags/tags.vue';
|
||||
import Search from '../components/search/search.vue';
|
||||
@@ -155,6 +156,11 @@ const routes = [
|
||||
component: Networks,
|
||||
name: 'networks',
|
||||
},
|
||||
{
|
||||
path: '/movies',
|
||||
component: Movies,
|
||||
name: 'movies',
|
||||
},
|
||||
{
|
||||
path: '/tags',
|
||||
component: Tags,
|
||||
|
||||
Reference in New Issue
Block a user