Debian Codegraph @

graphene_django/templates/graphene/graphiql.html

raw ◀ ▶
1 Debian patch touch this file
1 <!--
2 The request to this GraphQL server provided the header "Accept: text/html"
3 and as a result has been presented GraphiQL - an in-browser IDE for
4 exploring GraphQL.
5 If you wish to receive JSON, provide the header "Accept: application/json" or
6 add "&raw" to the end of the URL within a browser.
7 -->
8 {% load static %}
9 <!DOCTYPE html>
10 <html>
11 <head>
12 <style>
13 html, body, #editor {
14 height: 100%;
15 margin: 0;
16 overflow: hidden;
17 width: 100%;
18 }
19 </style>
•20 <!-- !!! Some Debian specific modification !!!
21 Don't sideload the additional required static files for various reasons.
22 1. This might become a privacy problem, even if some hash ID is used to
23 ensure the defined version is delivered.
24 2. There are systems that don't allow sideloading, like closed network
25 environments.
26 Instead use {%static} to add the required files to the STATICFILES_DIR
27 environment.
28 https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-STATICFILES_DIRS
29 -->
30 <link rel="stylesheet" href="{% static 'graphene_django/graphiql.min.css' %}">
31 <link rel="stylesheet" href="{% static 'graphene_django/style.css' %}">
32 <!-- <link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.css"
33 integrity="{{graphiql_css_sri}}"
34 rel="stylesheet"
35 crossorigin="anonymous" />
36 <link href="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@{{graphiql_plugin_explorer_version}}/dist/style.css"
37 integrity="{{graphiql_plugin_explorer_css_sri}}"
38 rel="stylesheet"
•39 crossorigin="anonymous" /> -->
40
41 <script src="{% static 'graphene_django/fetch.umd.js' %}"></script>
42 <!-- <script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@{{whatwg_fetch_version}}/dist/fetch.umd.js"
43 integrity="{{whatwg_fetch_sri}}"
•44 crossorigin="anonymous"></script> -->
45 <script src="{% static 'graphene_django/react.production.min.js' %}"></script>
46 <!-- <script src="https://cdn.jsdelivr.net/npm/react@{{react_version}}/umd/react.production.min.js"
47 integrity="{{react_sri}}"
•48 crossorigin="anonymous"></script> -->
49 <script src="{% static 'graphene_django/react-dom.production.min.js' %}"></script>
50 <!-- <script src="https://cdn.jsdelivr.net/npm/react-dom@{{react_version}}/umd/react-dom.production.min.js"
51 integrity="{{react_dom_sri}}"
•52 crossorigin="anonymous"></script> -->
53 <script src="{% static 'graphene_django/graphiql.min.js' %}"></script>
54 <!-- <script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
55 integrity="{{graphiql_sri}}"
•56 crossorigin="anonymous"></script> -->
57 <script src="{% static 'graphene_django/graphql-ws.min.js' %}"></script>
58 <!-- <script src="https://cdn.jsdelivr.net/npm/graphql-ws@{{subscriptions_transport_ws_version}}/umd/graphql-ws.min.js"
59 integrity="{{subscriptions_transport_ws_sri}}"
•60 crossorigin="anonymous"></script> -->
61 <script src="{% static 'graphene_django/graphiql-plugin-explorer.umd.js' %}"></script>
62 <!-- <script src="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@{{graphiql_plugin_explorer_version}}/dist/graphiql-plugin-explorer.umd.js"
63 integrity="{{graphiql_plugin_explorer_sri}}"
•64 crossorigin="anonymous"></script> -->
65 </head>
66 <body>
67 <div id="editor"></div>
68 {% csrf_token %}
69 <script type="application/javascript">
70 window.GRAPHENE_SETTINGS = {
71 {% if subscription_path %}
72 subscriptionPath: "{{subscription_path}}",
73 {% endif %}
74 graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled|yesno:"true,false" }},
75 graphiqlShouldPersistHeaders: {{ graphiql_should_persist_headers|yesno:"true,false" }},
76 graphiqlInputValueDeprecation: {{ graphiql_input_value_deprecation|yesno:"true,false" }},
77 };
78 </script>
79 <script src="{% static 'graphene_django/graphiql.js' %}"></script>
80 </body>
81 </html>