zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/debug/gqlplayground/index.html.tmpl (about) 1 <!-- 2 * Copyright (c) 2021 GraphQL Contributors 3 * All rights reserved. 4 * 5 * This source code is licensed under the license found in the 6 * LICENSE file in the root directory of this source tree. 7 --> 8 <!DOCTYPE html> 9 <html> 10 <head> 11 <title>zot GraphQL playground</title> 12 <style> 13 body { 14 height: 100%; 15 margin: 0; 16 width: 100%; 17 overflow: hidden; 18 } 19 20 #graphiql { 21 height: 100vh; 22 } 23 </style> 24 25 <!-- 26 This GraphiQL example depends on Promise and fetch, which are available in 27 modern browsers, but can be "polyfilled" for older browsers. 28 GraphiQL itself depends on React DOM. 29 If you do not want to rely on a CDN, you can host these files locally or 30 include them directly in your favored resource bundler. 31 --> 32 <script 33 crossorigin 34 src="https://unpkg.com/react@17/umd/react.development.js" 35 ></script> 36 <script 37 crossorigin 38 src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" 39 ></script> 40 41 <!-- 42 These two files can be found in the npm module, however you may wish to 43 copy them directly into your environment, or perhaps include them in your 44 favored resource bundler. 45 --> 46 <link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" /> 47 </head> 48 49 <body> 50 <div id="graphiql">Loading...</div> 51 <script 52 src="https://unpkg.com/graphiql/graphiql.min.js" 53 type="application/javascript" 54 ></script> 55 <script> 56 ReactDOM.render( 57 React.createElement(GraphiQL, { 58 fetcher: GraphiQL.createFetcher({ 59 url: {{.Target}}, 60 }), 61 defaultEditorToolsVisibility: true, 62 }), 63 document.getElementById('graphiql'), 64 ); 65 </script> 66 </body> 67 </html>