From 10e5833665576698efb06dedf21b2fe94f1a5951 Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Thu, 28 Nov 2024 11:19:44 -0500 Subject: [PATCH] Remove GraphiQL Explorer; fix headers property (#1174) --- src/Ui.GraphiQL/GraphiQLOptions.cs | 4 ++-- src/Ui.GraphiQL/Internal/graphiql.cshtml | 13 +------------ .../GraphQL.Server.Ui.GraphiQL.approved.txt | 1 + .../GraphQL.Server.Ui.GraphiQL.approved.txt | 1 + 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/Ui.GraphiQL/GraphiQLOptions.cs b/src/Ui.GraphiQL/GraphiQLOptions.cs index e09e3b47..a870d2fe 100644 --- a/src/Ui.GraphiQL/GraphiQLOptions.cs +++ b/src/Ui.GraphiQL/GraphiQLOptions.cs @@ -33,7 +33,6 @@ public class GraphiQLOptions /// /// Enables the header editor when . - /// Not supported when is . /// /// /// Original setting from GraphiQL. @@ -41,8 +40,9 @@ public class GraphiQLOptions public bool HeaderEditorEnabled { get; set; } = true; /// - /// Enables the explorer extension when . + /// This property has no effect. /// + [Obsolete("This property has no effect and will be removed in a future version.")] public bool ExplorerExtensionEnabled { get; set; } = true; /// diff --git a/src/Ui.GraphiQL/Internal/graphiql.cshtml b/src/Ui.GraphiQL/Internal/graphiql.cshtml index d3f7825a..f1803c7c 100644 --- a/src/Ui.GraphiQL/Internal/graphiql.cshtml +++ b/src/Ui.GraphiQL/Internal/graphiql.cshtml @@ -56,17 +56,6 @@ integrity="sha384-yz3/sqpuplkA7msMo0FE4ekg0xdwdvZ8JX9MVZREsxipqjU4h8IRfmAMRcb1QpUy" crossorigin="anonymous" /> - -