Sha256: 2a3c2a96d5e7f0fe619f9221ceb5a06ccc4d5435d58d535932c6ff1a509983b6
Contents?: true
Size: 541 Bytes
Versions: 18
Compression:
Stored size: 541 Bytes
Contents
// = 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
18 entries across 18 versions & 2 rubygems