Skip to content

Commit

Permalink
Bump Graphiql to fix layout (#1131)
Browse files Browse the repository at this point in the history
Co-authored-by: wlodzimierzyk <kowyako.yandex.ru>
Co-authored-by: Shane Krueger <shane@acdmail.com>
  • Loading branch information
Kowjako and Shane32 authored Aug 3, 2024
1 parent 7faa48d commit b1ee1af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions docs/migration/migration8.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ None
GraphQL.NET library. Please see the GraphQL.NET v8 migration document for more information.
- The obsolete (v6 and prior) authorization validation rule has been removed. See the v7 migration
document for more information on how to migrate to the v7/v8 authorization validation rule.

## Other changes

- GraphiQL has been bumped from 1.5.1 to 3.2.0
2 changes: 1 addition & 1 deletion src/Ui.GraphiQL/Internal/GraphiQLPageModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public string Render()
.Replace("@Model.SubscriptionsEndPoint", StringEncode(_options.SubscriptionsEndPoint))
.Replace("@Model.Headers", JsonSerialize(headers))
.Replace("@Model.HeaderEditorEnabled", _options.HeaderEditorEnabled ? "true" : "false")
.Replace("@Model.GraphiQLElement", _options.ExplorerExtensionEnabled ? "GraphiQLWithExtensions.GraphiQLWithExtensions" : "GraphiQL")
.Replace("@Model.GraphiQLElement", "GraphiQL")
.Replace("@Model.RequestCredentials", requestCredentials);

// Here, fully-qualified, absolute and relative URLs are supported for both the
Expand Down
11 changes: 6 additions & 5 deletions src/Ui.GraphiQL/Internal/graphiql.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
* Copyright (c) 2021 GraphQL Contributors
* Copyright (c) 2024 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the license found in the
Expand Down Expand Up @@ -52,8 +52,8 @@
-->
<link
rel="stylesheet"
href="https://unpkg.com/graphiql@1.5.1/graphiql.min.css"
integrity="sha384-1YHEU+Xy8hlKYAZ26WTz+JQEPMM6i/Mx5m8umMkSZChlzSYmq7RqyCyRbGqrILVZ"
href="https://unpkg.com/graphiql@3.2.0/graphiql.min.css"
integrity="sha384-yz3/sqpuplkA7msMo0FE4ekg0xdwdvZ8JX9MVZREsxipqjU4h8IRfmAMRcb1QpUy"
crossorigin="anonymous"
/>
<script
Expand Down Expand Up @@ -82,8 +82,9 @@
<body>
<div id="graphiql">Loading...</div>
<script
src="https://unpkg.com/graphiql@1.5.1/graphiql.min.js"
integrity="sha384-ktvW/i3KUd0D3ub91RkvHlJmf5wWqq7/VSBpCtpRrItml9btmAZH0x8c7fEXcr3e"
src="https://unpkg.com/graphiql@3.2.0/graphiql.min.js"
type="application/javascript"
integrity="sha384-h7T8iQ4OYtRS2RIWfZ7ahqfNRtVrjc6Uz/gUJjydAV/uWn/HgC5GMnSKmsvNGeUH"
crossorigin="anonymous"
></script>
<script>
Expand Down

0 comments on commit b1ee1af

Please sign in to comment.