Fixed add stash in notifications panel. Fixed iframe ads breaking page width. Improved actor and movie tile size in search results.

This commit is contained in:
2024-08-29 17:53:54 +02:00
parent 33e8fbea0b
commit 0909e8d74c
9 changed files with 152 additions and 29 deletions

View File

@@ -4,18 +4,29 @@ import {
GraphQLScalarType,
} from 'graphql';
import { scenesSchema, fetchScenesGraphql } from './scenes.js';
import {
scenesSchema,
fetchScenesGraphql,
fetchScenesByIdGraphql,
} from './scenes.js';
import {
entitiesSchema,
fetchEntitiesGraphql,
fetchEntitiesByIdGraphql,
} from './entities.js';
const schema = buildSchema(`
type Query {
scenes(
movies(
limit: Int = 30
): Result
): ReleasesResult
}
scalar Date
${scenesSchema}
${entitiesSchema}
`);
const DateTimeScalar = new GraphQLScalarType({
@@ -39,6 +50,9 @@ export async function graphqlApi(req, res) {
},
rootValue: {
scenes: async (query) => fetchScenesGraphql(query, req),
scene: async (query) => fetchScenesByIdGraphql(query, req),
entities: async (query) => fetchEntitiesGraphql(query, req),
entity: async (query) => fetchEntitiesByIdGraphql(query, req),
},
});