Added rudimentary affiliate banner setup. Separated login and signup disable. Added various tag photos.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
enabled: window.env.auth,
|
||||
login: window.env.login,
|
||||
signup: window.env.signup,
|
||||
user: null,
|
||||
};
|
||||
|
||||
@@ -126,6 +126,7 @@ function curateTag(tag) {
|
||||
};
|
||||
|
||||
if (tag.releases) curatedTag.releases = tag.releases.map(({ release }) => curateRelease(release));
|
||||
if (tag.banners) curatedTag.banners = tag.banners.map(({ banner }) => banner);
|
||||
if (tag.photos) curatedTag.photos = tag.photos.map(({ media }) => media);
|
||||
if (tag.poster) curatedTag.poster = tag.poster.media;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { graphql } from '../api';
|
||||
// import { sitesFragment, releaseFields } from '../fragments';
|
||||
import { releaseFields } from '../fragments';
|
||||
import { releaseFields, campaignsFragment } from '../fragments';
|
||||
import { curateEntity } from '../curate';
|
||||
import getDateRange from '../get-date-range';
|
||||
|
||||
@@ -65,6 +65,7 @@ function initEntitiesActions(store, router) {
|
||||
hasLogo
|
||||
}
|
||||
}
|
||||
${campaignsFragment}
|
||||
parent {
|
||||
id
|
||||
name
|
||||
@@ -73,6 +74,7 @@ function initEntitiesActions(store, router) {
|
||||
url
|
||||
independent
|
||||
hasLogo
|
||||
${campaignsFragment}
|
||||
}
|
||||
}
|
||||
connection: releasesConnection(
|
||||
|
||||
@@ -96,6 +96,56 @@ const actorFields = `
|
||||
${actorStashesFields}
|
||||
`;
|
||||
|
||||
const campaignsFragment = `
|
||||
campaigns(filter: {
|
||||
banner: {
|
||||
bannersTagsConnection: {
|
||||
none: {
|
||||
tag: {
|
||||
slug: {
|
||||
in: $exclude
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}) {
|
||||
affiliate {
|
||||
id
|
||||
url
|
||||
}
|
||||
banner {
|
||||
id
|
||||
width
|
||||
height
|
||||
entity {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
parent {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
entity {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
parent {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const releaseActorsFragment = `
|
||||
actors: releasesActors(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
||||
actor {
|
||||
@@ -480,6 +530,7 @@ function getIncludedActors(router) {
|
||||
export {
|
||||
actorFields,
|
||||
actorStashesFields,
|
||||
campaignsFragment,
|
||||
releaseActorsFragment,
|
||||
releaseFields,
|
||||
releaseTagsFragment,
|
||||
|
||||
@@ -103,6 +103,57 @@ function initTagsActions(store, _router) {
|
||||
}
|
||||
}
|
||||
}
|
||||
banners: bannersTags(filter: {
|
||||
banner: {
|
||||
bannersTagsConnection: {
|
||||
none: {
|
||||
tag: {
|
||||
slug: {
|
||||
in: $exclude
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}) {
|
||||
banner {
|
||||
id
|
||||
width
|
||||
height
|
||||
entity {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
independent
|
||||
parent {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
independent
|
||||
}
|
||||
}
|
||||
campaigns {
|
||||
affiliate {
|
||||
id
|
||||
url
|
||||
}
|
||||
entity {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
parent {
|
||||
id
|
||||
type
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scenesConnection(
|
||||
filter: {
|
||||
date: {
|
||||
|
||||
Reference in New Issue
Block a user