mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
ui: lazyload graphiql
This commit is contained in:
1 parent
32694f5a1d
commit
24f001f666
5 files changed
+6
-6
No files matched your search
@@ -2,7 +2,6 @@ import { NamedPage } from 'vj/misc/Page';
|
||||
import request from 'vj/utils/request';
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import 'graphiql/graphiql.css';
|
||||
|
||||
const Logo = () => <span>Hydro API Console </span>;
|
||||
const defaultQuery = `\
|
||||
@@ -17,6 +16,7 @@ const page = new NamedPage('api', async () => {
|
||||
import('graphiql'),
|
||||
import('graphql'),
|
||||
request.get('/api?schema'),
|
||||
import('graphiql/graphiql.css'),
|
||||
]);
|
||||
// @ts-ignore
|
||||
GraphiQL.Logo = Logo;
|
||||
|
||||
Reference in new issue
Block a user