GraphQL Playground
++ Enter an endpoint to open the full interactive playground. The editor loads only after you choose a GraphQL + API, keeping this route fast by default. +
+ + +diff --git a/src/pages/playground.tsx b/src/pages/playground/app.tsx similarity index 71% rename from src/pages/playground.tsx rename to src/pages/playground/app.tsx index e38dbc11c..fef5918cb 100644 --- a/src/pages/playground.tsx +++ b/src/pages/playground/app.tsx @@ -1,11 +1,11 @@ import React, {useEffect} from "react" import ReactGA from "react-ga4" import Layout from "@theme/Layout" -import PlaygroundPage from "../components/playground" +import PlaygroundPage from "../../components/playground" import {useLocation} from "@docusaurus/router" -import {PageDescription, PageTitle} from "../constants/titles" +import {PageDescription, PageTitle} from "../../constants/titles" -const Playground = () => { +const PlaygroundApp = () => { const location = useLocation() useEffect(() => { @@ -19,4 +19,4 @@ const Playground = () => { ) } -export default Playground +export default PlaygroundApp diff --git a/static/playground/index.html b/static/playground/index.html new file mode 100644 index 000000000..322d0017c --- /dev/null +++ b/static/playground/index.html @@ -0,0 +1,216 @@ + + +
+ + ++ Enter an endpoint to open the full interactive playground. The editor loads only after you choose a GraphQL + API, keeping this route fast by default. +
+ + +