WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

View File

@@ -0,0 +1,6 @@
import { Request, Response } from 'express';
import { MiddlewareOptions } from 'graphql-playground-html';
export declare type ExpressPlaygroundMiddleware = (req: Request, res: Response, next: () => void) => void;
export declare type Register = (options: MiddlewareOptions) => ExpressPlaygroundMiddleware;
declare const express: Register;
export default express;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var graphql_playground_html_1 = require("graphql-playground-html");
var express = function voyagerExpress(options) {
return function (req, res, next) {
res.setHeader('Content-Type', 'text/html');
var playground = graphql_playground_html_1.renderPlaygroundPage(options);
res.write(playground);
res.end();
};
};
exports.default = express;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,mEAGgC;AAchC,IAAM,OAAO,GAAa,wBAAwB,OAA0B;IAC1E,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG,EAAE,IAAI;QACpB,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA;QAC1C,IAAM,UAAU,GAAG,8CAAoB,CAAC,OAAO,CAAC,CAAA;QAChD,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QACrB,GAAG,CAAC,GAAG,EAAE,CAAA;IACX,CAAC,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,OAAO,CAAA"}