File: graphiql.html

package info (click to toggle)
django-graphene 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,996 kB
  • sloc: javascript: 25,534; python: 11,992; makefile: 233; sh: 4
file content (81 lines) | stat: -rw-r--r-- 3,907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!--
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.
-->
{% load static %}
<!DOCTYPE html>
<html>
<head>
  <style>
    html, body, #editor {
      height: 100%;
      margin: 0;
      overflow: hidden;
      width: 100%;
    }
  </style>
<!--        !!! Some Debian specific modification !!!
Don't sideload the additional required static files for various reasons.
 1. This might become a privacy problem, even if some hash ID is used to
    ensure the defined version is delivered.
 2. There are systems that don't allow sideloading, like closed network
    environments.
Instead use {%static} to add the required files to the STATICFILES_DIR
environment.
https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-STATICFILES_DIRS
-->
  <link rel="stylesheet" href="{% static 'graphene_django/graphiql.min.css' %}">
  <link rel="stylesheet" href="{% static 'graphene_django/style.css' %}">
<!--  <link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.css"
        integrity="{{graphiql_css_sri}}"
        rel="stylesheet"
        crossorigin="anonymous" />
  <link href="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@{{graphiql_plugin_explorer_version}}/dist/style.css"
        integrity="{{graphiql_plugin_explorer_css_sri}}"
        rel="stylesheet"
        crossorigin="anonymous" /> -->

  <script src="{% static 'graphene_django/fetch.umd.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@{{whatwg_fetch_version}}/dist/fetch.umd.js"
          integrity="{{whatwg_fetch_sri}}"
          crossorigin="anonymous"></script> -->
  <script src="{% static 'graphene_django/react.production.min.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/react@{{react_version}}/umd/react.production.min.js"
          integrity="{{react_sri}}"
          crossorigin="anonymous"></script> -->
  <script src="{% static 'graphene_django/react-dom.production.min.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/react-dom@{{react_version}}/umd/react-dom.production.min.js"
          integrity="{{react_dom_sri}}"
          crossorigin="anonymous"></script> -->
  <script src="{% static 'graphene_django/graphiql.min.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
          integrity="{{graphiql_sri}}"
          crossorigin="anonymous"></script> -->
  <script src="{% static 'graphene_django/graphql-ws.min.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/graphql-ws@{{subscriptions_transport_ws_version}}/umd/graphql-ws.min.js"
          integrity="{{subscriptions_transport_ws_sri}}"
          crossorigin="anonymous"></script> -->
  <script src="{% static 'graphene_django/graphiql-plugin-explorer.umd.js' %}"></script>
<!--  <script src="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@{{graphiql_plugin_explorer_version}}/dist/graphiql-plugin-explorer.umd.js"
          integrity="{{graphiql_plugin_explorer_sri}}"
          crossorigin="anonymous"></script> -->
</head>
<body>
  <div id="editor"></div>
  {% csrf_token %}
  <script type="application/javascript">
    window.GRAPHENE_SETTINGS = {
    {% if subscription_path %}
      subscriptionPath: "{{subscription_path}}",
    {% endif %}
      graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled|yesno:"true,false" }},
      graphiqlShouldPersistHeaders: {{ graphiql_should_persist_headers|yesno:"true,false" }},
      graphiqlInputValueDeprecation: {{ graphiql_input_value_deprecation|yesno:"true,false" }},
    };
  </script>
  <script src="{% static 'graphene_django/graphiql.js' %}"></script>
</body>
</html>