Added Teen Core Club. Changed network to entity in GraphQL query.
|
@ -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}
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
|
|
@ -148,6 +148,7 @@ exports.up = knex => Promise.resolve()
|
|||
{ type: 'network' },
|
||||
{ type: 'channel' },
|
||||
{ type: 'studio' },
|
||||
{ type: 'info' },
|
||||
]))
|
||||
.then(() => knex.schema.createTable('entities', (table) => {
|
||||
table.increments('id', 12);
|
||||
|
@ -156,14 +157,16 @@ exports.up = knex => Promise.resolve()
|
|||
.references('id')
|
||||
.inTable('entities');
|
||||
|
||||
table.text('name');
|
||||
table.text('slug', 32);
|
||||
|
||||
table.integer('type', 4)
|
||||
.references('id')
|
||||
.inTable('entities_types')
|
||||
.defaultTo(2);
|
||||
|
||||
table.text('name');
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
table.unique(['slug', 'type']);
|
||||
|
||||
table.text('alias');
|
||||
|
||||
table.text('url');
|
||||
|
|
After Width: | Height: | Size: 56 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 123 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><path d="M24.2,0c-5.3,0 -9.6,4.3 -9.6,9.5c0,5.2 4.3,9.5 9.6,9.5c5.3,0 9.6,-4.3 9.6,-9.5c0,-5.2 -4.3,-9.5 -9.6,-9.5Zm0,13.3c-2.1,0 -3.8,-1.7 -3.8,-3.8c0,-2.1 1.7,-3.8 3.8,-3.8c2.1,0 3.8,1.7 3.8,3.8c0.1,2.1 -1.7,3.8 -3.8,3.8Zm-13.9,-12.2c-1.3,-0.4 -2.8,-0.7 -4.5,-0.7l-5.8,0l0,18.1l5.8,0l0,-4.4c4.2,-0.1 6.2,-0.9 7.5,-3.2c0.6,-1.1 0.9,-2.4 0.9,-3.7c0,-2.7 -1.5,-5.3 -3.9,-6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4.9,0l0,-18.2l-5.8,0l0,7Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M69.9,14.3c-1.3,0 -2.4,1.1 -2.4,2.4c0,1.3 1.1,2.4 2.4,2.4c1.3,0 2.4,-1.1 2.4,-2.4c0,-1.4 -1.1,-2.4 -2.4,-2.4Z" style="fill:#ff9801;fill-rule:nonzero;"/></svg>
|
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 960 KiB |
After Width: | Height: | Size: 161 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 261 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 276 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 140 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 203 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 4.2 KiB |