Skip to content

Commit 4ce95f8

Browse files
committed
Update GraphiQL stock build
This commit upgrades the default react version used in the GraphiQL build shipped with the project. This also fixes a few HTML syntax issues in the index.html page.
1 parent 054aaed commit 4ce95f8

File tree

1 file changed

+12
-3
lines changed
  • spring-graphql/src/main/resources/graphiql

1 file changed

+12
-3
lines changed

spring-graphql/src/main/resources/graphiql/index.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
4+
<title>GraphiQL</title>
45
<style>
56
body {
67
height: 100%;
@@ -13,8 +14,16 @@
1314
height: 100vh;
1415
}
1516
</style>
16-
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
17-
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
17+
<script
18+
src="https://unpkg.com/react@17/umd/react.development.js"
19+
integrity="sha512-Vf2xGDzpqUOEIKO+X2rgTLWPY+65++WPwCHkX2nFMu9IcstumPsf/uKKRd5prX3wOu8Q0GBylRpsDB26R6ExOg=="
20+
crossorigin="anonymous"
21+
></script>
22+
<script
23+
src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"
24+
integrity="sha512-Wr9OKCTtq1anK0hq5bY3X/AvDI5EflDSAh0mE9gma+4hl+kXdTJPKZ3TwLMBcrgUeoY0s3dq9JjhCQc7vddtFg=="
25+
crossorigin="anonymous"
26+
></script>
1827
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
1928
</head>
2029

0 commit comments

Comments
 (0)