Sha256: 41c849edcd8cb6b288e95400146172821ddd8a9a33e81e23f5996102c3cd0820
Contents?: true
Size: 583 Bytes
Versions: 18
Compression:
Stored size: 583 Bytes
Contents
/* eslint-disable react/jsx-no-undef */ // = require jquery3 // = 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
18 entries across 18 versions & 1 rubygems