forked from DebaucheryLibrarian/traxxx
Added Teen Core Club. Changed network to entity in GraphQL query.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { graphql } from '../api';
|
||||
import { sitesFragment, releaseFields } from '../fragments';
|
||||
// import { sitesFragment, releaseFields } from '../fragments';
|
||||
import { releaseFields } from '../fragments';
|
||||
import { curateNetwork } from '../curate';
|
||||
import getDateRange from '../get-date-range';
|
||||
|
||||
@@ -24,45 +25,19 @@ function initNetworksActions(store, _router) {
|
||||
$orderBy: [ReleasesOrderBy!]
|
||||
$exclude: [String!]
|
||||
) {
|
||||
network: networkBySlug(slug: $networkSlug) {
|
||||
network: entityBySlugAndType(slug: $networkSlug, type: 1) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
networks: childNetworks(
|
||||
orderBy: NAME_ASC,
|
||||
) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
}
|
||||
sites(
|
||||
sites: childEntities(
|
||||
orderBy: [PRIORITY_DESC, NAME_ASC],
|
||||
filter: {
|
||||
show: {
|
||||
equalTo: true,
|
||||
},
|
||||
},
|
||||
) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
independent
|
||||
priority
|
||||
network {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
}
|
||||
}
|
||||
studios {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
}
|
||||
parent {
|
||||
id
|
||||
@@ -137,12 +112,18 @@ function initNetworksActions(store, _router) {
|
||||
async function fetchNetworks({ _commit }) {
|
||||
const { networks } = await graphql(`
|
||||
query Networks {
|
||||
networks(orderBy: NAME_ASC) {
|
||||
networks: entities(
|
||||
orderBy: NAME_ASC
|
||||
filter: {
|
||||
type: {
|
||||
equalTo: 1
|
||||
}
|
||||
}
|
||||
) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
url
|
||||
${sitesFragment}
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user