Sha256: 02cf2a6f563de39b19c1240a0b781d06a590e1774a869ca0d71f80c5deda1910

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

<!DOCTYPE html>
<html>
  <head>
    <title><%= Decidim::GraphiQL::Rails.config.title || "Decidim API" %></title>
    <%= stylesheet_pack_tag("decidim_api_graphiql") %>
    <%= javascript_pack_tag("decidim_api_graphiql") %>
  </head>
  <body>
    <div id="graphiql-container">
      Loading...
    </div>

    <%
      js_configs = {
        graphql_endpoint: graphql_endpoint_path,
        default_query: Decidim::GraphiQL::Rails.config.initial_query,
        request_headers: JSON.pretty_generate(Decidim::GraphiQL::Rails.config.resolve_headers(self))
      }
    %>
    <script>
      window.Decidim.config.set(<%== js_configs.to_json %>);
    </script>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-api-0.25.0.rc1 app/views/decidim/api/graphiql/show.html.erb