From b4abb30ee4ed1041811bc6652b738dac884b03a3 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 27 Nov 2024 19:07:42 -0500 Subject: [PATCH 1/3] Remove GraphiQL Explorer; fix headers property --- samples/Samples.Basic/Program.cs | 1 + src/Ui.GraphiQL/GraphiQLOptions.cs | 4 ++-- src/Ui.GraphiQL/Internal/graphiql.cshtml | 13 +------------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/samples/Samples.Basic/Program.cs b/samples/Samples.Basic/Program.cs index eeb8fe18..7400cf74 100644 --- a/samples/Samples.Basic/Program.cs +++ b/samples/Samples.Basic/Program.cs @@ -22,6 +22,7 @@ { GraphQLEndPoint = "/graphql", SubscriptionsEndPoint = "/graphql", + HeaderEditorEnabled = false, }); await app.RunAsync(); 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" /> - -