Commit 0009573d authored by isstuev's avatar isstuev

test

parent 56654f59
...@@ -316,6 +316,7 @@ frontend: ...@@ -316,6 +316,7 @@ frontend:
- "/api-docs" - "/api-docs"
- "/csv-export" - "/csv-export"
- "/verified-contracts" - "/verified-contracts"
- "/graphiql"
resources: resources:
limits: limits:
......
...@@ -364,6 +364,7 @@ frontend: ...@@ -364,6 +364,7 @@ frontend:
- "/api-docs" - "/api-docs"
- "/csv-export" - "/csv-export"
- "/verified-contracts" - "/verified-contracts"
- "/graphiql"
resources: resources:
limits: limits:
......
...@@ -39,6 +39,7 @@ frontend: ...@@ -39,6 +39,7 @@ frontend:
- "/api-docs" - "/api-docs"
- "/csv-export" - "/csv-export"
- "/verified-contracts" - "/verified-contracts"
- "/graphiql"
resources: resources:
limits: limits:
......
...@@ -39,6 +39,7 @@ frontend: ...@@ -39,6 +39,7 @@ frontend:
- "/api-docs" - "/api-docs"
- "/csv-export" - "/csv-export"
- "/verified-contracts" - "/verified-contracts"
- "/graphiql"
resources: resources:
limits: limits:
......
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
"dom-to-image": "^2.6.0", "dom-to-image": "^2.6.0",
"ethers": "^5.7.2", "ethers": "^5.7.2",
"framer-motion": "^6.5.1", "framer-motion": "^6.5.1",
"graphiql": "^2.2.0",
"graphql": "^16.6.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"lodash": "^4.0.0", "lodash": "^4.0.0",
"next": "12.2.5", "next": "12.2.5",
......
import { Spinner } from '@chakra-ui/react';
import type { NextPage } from 'next'; import type { NextPage } from 'next';
import dynamic from 'next/dynamic';
const GraphQL = dynamic(() => import('ui/graphQL/GraphQL'), {
loading: () => <Spinner/>,
ssr: false,
});
import React from 'react';
const GraphQLPage: NextPage = () => { const GraphQLPage: NextPage = () => {
return null; return <GraphQL/>;
}; };
export default GraphQLPage; export default GraphQLPage;
export async function getServerSideProps() { export { getServerSideProps } from 'lib/next/getServerSideProps';
return {
notFound: true,
};
}
import { Box } from '@chakra-ui/react';
import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { GraphiQL } from 'graphiql';
import React from 'react';
import 'graphiql/graphiql.css';
const GraphQL = () => {
const fetcher = createGraphiQLFetcher({
url: 'https://base-goerli.blockscout.com/graphiql',
});
return (
<Box h="100vh" sx={{}}>
<GraphiQL fetcher={ fetcher }/>
</Box>
);
};
export default GraphQL;
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment