|
1 | 1 | <!DOCTYPE html>
|
| 2 | + |
2 | 3 | <html>
|
3 | 4 |
|
4 | 5 | <head>
|
5 |
| - <meta charset=utf-8/> |
6 |
| - <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui"> |
7 |
| - <title>GraphQL Playground</title> |
8 |
| - <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css" /> |
9 |
| - <link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png" /> |
10 |
| - <script src="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js"></script> |
| 6 | + <meta charset="utf-8" /> |
| 7 | + <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui"> |
| 8 | + <title>GraphQL Playground</title> |
| 9 | + <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css" /> |
| 10 | + <link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png" /> |
| 11 | + <script src="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js"></script> |
| 12 | + |
11 | 13 | </head>
|
12 | 14 |
|
13 | 15 | <body>
|
14 |
| - <div id="root"> |
15 |
| - <style> |
16 |
| - body { |
17 |
| - background-color: rgb(23, 42, 58); |
18 |
| - font-family: Open Sans, sans-serif; |
19 |
| - height: 90vh; |
20 |
| - } |
21 |
| - #root { |
22 |
| - height: 100%; |
23 |
| - width: 100%; |
24 |
| - display: flex; |
25 |
| - align-items: center; |
26 |
| - justify-content: center; |
27 |
| - } |
28 |
| - .loading { |
29 |
| - font-size: 32px; |
30 |
| - font-weight: 200; |
31 |
| - color: rgba(255, 255, 255, .6); |
32 |
| - margin-left: 20px; |
33 |
| - } |
34 |
| - img { |
35 |
| - width: 78px; |
36 |
| - height: 78px; |
37 |
| - } |
38 |
| - .title { |
39 |
| - font-weight: 400; |
40 |
| - } |
41 |
| - </style> |
42 |
| - <img src='//cdn.jsdelivr.net/npm/graphql-playground-react/build/logo.png' alt=''> |
43 |
| - <div class="loading"> Loading |
44 |
| - <span class="title">GraphQL Playground</span> |
45 |
| - </div> |
46 |
| - </div> |
47 |
| - <script>window.addEventListener('load', function (event) { |
48 |
| - GraphQLPlayground.init(document.getElementById('root'), { |
49 |
| - // options as 'endpoint' belong here |
50 |
| - }) |
51 |
| - })</script> |
52 |
| -</body> |
| 16 | + <div id="root"> |
| 17 | + <style> |
| 18 | + body { |
| 19 | + background-color: rgb(23, 42, 58); |
| 20 | + font-family: Open Sans, sans-serif; |
| 21 | + height: 90vh; |
| 22 | + } |
| 23 | + |
| 24 | + #root { |
| 25 | + height: 100%; |
| 26 | + width: 100%; |
| 27 | + display: flex; |
| 28 | + align-items: center; |
| 29 | + justify-content: center; |
| 30 | + } |
53 | 31 |
|
| 32 | + .loading { |
| 33 | + font-size: 32px; |
| 34 | + font-weight: 200; |
| 35 | + color: rgba(255, 255, 255, .6); |
| 36 | + margin-left: 20px; |
| 37 | + } |
| 38 | + |
| 39 | + img { |
| 40 | + width: 78px; |
| 41 | + height: 78px; |
| 42 | + } |
| 43 | + |
| 44 | + .title { |
| 45 | + font-weight: 400; |
| 46 | + } |
| 47 | + </style> |
| 48 | + <img src='//cdn.jsdelivr.net/npm/graphql-playground-react/build/logo.png' alt=''> |
| 49 | + <div class="loading"> |
| 50 | + Loading |
| 51 | + <span class="title">GraphQL Playground</span> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <script> |
| 55 | + window.addEventListener('load', function (event) { |
| 56 | + GraphQLPlayground.init(document.getElementById('root'), { |
| 57 | + setTitle: true, |
| 58 | + endpoint: window.location.protocol + "//" + window.location.host + "{{GraphQLEndPoint}}", |
| 59 | + subscriptionEndpoint: (window.location.protocol === "http:" ? "ws://" : "wss://") + window.location.host + "{{GraphQLEndPoint}}", |
| 60 | + config: {{GraphQLConfig}}, |
| 61 | + settings: {{PlaygroundSettings}} |
| 62 | + }); |
| 63 | + }); |
| 64 | + </script> |
| 65 | + </body> |
54 | 66 | </html>
|
0 commit comments