2016-09-20 08:04:23 +03:00
|
|
|
<!--
|
|
|
|
The request to this GraphQL server provided the header "Accept: text/html"
|
|
|
|
and as a result has been presented GraphiQL - an in-browser IDE for
|
|
|
|
exploring GraphQL.
|
|
|
|
If you wish to receive JSON, provide the header "Accept: application/json" or
|
|
|
|
add "&raw" to the end of the URL within a browser.
|
|
|
|
-->
|
2018-08-30 22:36:26 +03:00
|
|
|
{% load static %}
|
2016-09-20 08:04:23 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
2020-02-07 13:16:11 +03:00
|
|
|
html, body, #editor {
|
2016-09-20 08:04:23 +03:00
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
2020-07-12 22:48:12 +03:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.css"
|
|
|
|
integrity="{{graphiql_css_sri}}"
|
2019-03-19 23:34:10 +03:00
|
|
|
rel="stylesheet"
|
|
|
|
crossorigin="anonymous" />
|
2020-07-12 22:48:12 +03:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@{{whatwg_fetch_version}}/dist/fetch.umd.js"
|
|
|
|
integrity="{{whatwg_fetch_sri}}"
|
2019-03-19 23:34:10 +03:00
|
|
|
crossorigin="anonymous"></script>
|
2019-05-20 14:41:25 +03:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/react@{{react_version}}/umd/react.production.min.js"
|
2020-07-12 22:48:12 +03:00
|
|
|
integrity="{{react_sri}}"
|
2019-03-19 23:34:10 +03:00
|
|
|
crossorigin="anonymous"></script>
|
2019-05-20 14:41:25 +03:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/react-dom@{{react_version}}/umd/react-dom.production.min.js"
|
2020-07-12 22:48:12 +03:00
|
|
|
integrity="{{react_dom_sri}}"
|
2019-03-19 23:34:10 +03:00
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
|
2020-07-12 22:48:12 +03:00
|
|
|
integrity="{{graphiql_sri}}"
|
2019-03-19 23:34:10 +03:00
|
|
|
crossorigin="anonymous"></script>
|
2020-07-12 16:42:31 +03:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/subscriptions-transport-ws@{{subscriptions_transport_ws_version}}/browser/client.js"
|
2020-07-12 22:48:12 +03:00
|
|
|
integrity="{{subscriptions_transport_ws_sri}}"
|
2020-07-12 16:42:31 +03:00
|
|
|
crossorigin="anonymous"></script>
|
2016-09-20 08:04:23 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-02-07 13:16:11 +03:00
|
|
|
<div id="editor"></div>
|
2019-12-27 17:26:42 +03:00
|
|
|
{% csrf_token %}
|
2020-07-12 16:42:31 +03:00
|
|
|
<script type="application/javascript">
|
|
|
|
window.GRAPHENE_SETTINGS = {
|
|
|
|
{% if subscription_path %}
|
|
|
|
subscriptionPath: "{{subscription_path}}",
|
|
|
|
{% endif %}
|
2020-08-07 12:13:26 +03:00
|
|
|
graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled|yesno:"true,false" }},
|
2022-09-24 17:41:14 +03:00
|
|
|
graphiqlShouldPersistHeaders: {{ graphiql_should_persist_headers|yesno:"true,false" }},
|
2020-07-12 16:42:31 +03:00
|
|
|
};
|
|
|
|
</script>
|
2018-08-30 22:58:00 +03:00
|
|
|
<script src="{% static 'graphene_django/graphiql.js' %}"></script>
|
2016-09-20 08:04:23 +03:00
|
|
|
</body>
|
|
|
|
</html>
|