| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<title>GraphiQL</title> |
| 5 |
<style> |
| 6 |
body { |
| 7 |
height: 100%; |
| 8 |
margin: 0; |
| 9 |
width: 100%; |
| 10 |
overflow: hidden; |
| 11 |
} |
| 12 |
#graphiql { |
| 13 |
height: 100vh; |
| 14 |
} |
| 15 |
</style> |
| 16 |
<script src="https://unpkg.com/react@17/umd/react.development.js" integrity="sha512-Vf2xGDzpqUOEIKO+X2rgTLWPY+65++WPwCHkX2nFMu9IcstumPsf/uKKRd5prX3wOu8Q0GBylRpsDB26R6ExOg==" crossorigin="anonymous"></script> |
| 17 |
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" integrity="sha512-Wr9OKCTtq1anK0hq5bY3X/AvDI5EflDSAh0mE9gma+4hl+kXdTJPKZ3TwLMBcrgUeoY0s3dq9JjhCQc7vddtFg==" crossorigin="anonymous"></script> |
| 18 |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/graphiql.min.css" /> |
| 19 |
</head> |
| 20 |
<body> |
| 21 |
<div id="graphiql">Loading...</div> |
| 22 |
<script src="https://unpkg.com/[email protected]/graphiql.min.js" type="application/javascript"></script> |
| 23 |
<script> |
| 24 |
ReactDOM.render( |
| 25 |
React.createElement(GraphiQL, { |
| 26 |
fetcher: GraphiQL.createFetcher({url: '/'}), |
| 27 |
defaultEditorToolsVisibility: true, |
| 28 |
}), |
| 29 |
document.getElementById('graphiql'), |
| 30 |
); |
| 31 |
</script> |
| 32 |
</body> |
| 33 |
</html> |