Sha256: 5a707a89e8056f6d5b3130215dc922dbfc0d3825070146fcab2c2b41121ae561
Contents?: true
Size: 582 Bytes
Versions: 56
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
56 entries across 56 versions & 2 rubygems