Sha256: e1d033da222e5c921965e7538793e9b529c38a4399156e9a8fe18cee1fe2fc4a
Contents?: true
Size: 582 Bytes
Versions: 26
Compression:
Stored size: 582 Bytes
Contents
/* eslint-disable react/jsx-no-undef */ // = require jquery // = require decidim/api/react // = require decidim/api/react-dom // = require decidim/api/graphql-docs const fetcherFactory = (path) => { return (query) => { return jQuery.ajax({ url: path, data: JSON.stringify({ query }), method: "POST", contentType: "application/json", dataType: "json" }); }; } window.renderDocumentation = (path) => { ReactDOM.render( <GraphQLDocs.GraphQLDocs fetcher={fetcherFactory(path)} />, document.getElementById("documentation"), ); };
Version data entries
26 entries across 26 versions & 1 rubygems