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

Version Path
decidim-api-0.6.6 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.6 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.5 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.5 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.4 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.4 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.3 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.3 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.2 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.2 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.1 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.1 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.6.0 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.6.0 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.5.1 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.5.1 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.5.0 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.5.0 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6
decidim-api-0.4.4 app/assets/javascripts/decidim/api/docs.js.es6
decidim-0.4.4 decidim-api/app/assets/javascripts/decidim/api/docs.js.es6