Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #16 from henrikwirth/feature/graphiql-explorer-gatsby
Browse files Browse the repository at this point in the history
Adds GraphQL-Explorer to WP-GraphiQL in the way gatsby is using it.
  • Loading branch information
jasonbahl authored Aug 13, 2019
2 parents ca78e59 + 20162ec commit 7c08302
Show file tree
Hide file tree
Showing 21 changed files with 5,539 additions and 5,448 deletions.
12 changes: 6 additions & 6 deletions assets/app/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"main.css": "static/css/main.820e0136.css",
"main.css.map": "static/css/main.820e0136.css.map",
"main.js": "static/js/main.ef1c9dbe.js",
"main.js.map": "static/js/main.ef1c9dbe.js.map",
"static/media/GraphQLLanguageService.js.flow": "static/media/GraphQLLanguageService.js.661fe407.flow",
"main.css": "static/css/main.e7f7b683.css",
"main.css.map": "static/css/main.e7f7b683.css.map",
"main.js": "static/js/main.082a1d43.js",
"main.js.map": "static/js/main.082a1d43.js.map",
"static/media/GraphQLLanguageService.js.flow": "static/media/GraphQLLanguageService.js.5ab204b9.flow",
"static/media/autocompleteUtils.js.flow": "static/media/autocompleteUtils.js.4ce7ba19.flow",
"static/media/getAutocompleteSuggestions.js.flow": "static/media/getAutocompleteSuggestions.js.7f98f032.flow",
"static/media/getDefinition.js.flow": "static/media/getDefinition.js.4dbec62f.flow",
"static/media/getDiagnostics.js.flow": "static/media/getDiagnostics.js.65b0979a.flow",
"static/media/getHoverInformation.js.flow": "static/media/getHoverInformation.js.d9411837.flow",
"static/media/getOutline.js.flow": "static/media/getOutline.js.458a3518.flow",
"static/media/getOutline.js.flow": "static/media/getOutline.js.c04e3998.flow",
"static/media/index.js.flow": "static/media/index.js.02c24280.flow"
}
2 changes: 1 addition & 1 deletion assets/app/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<head><link href="/static/css/main.820e0136.css" rel="stylesheet"></head><script type="text/javascript" src="/static/js/main.ef1c9dbe.js"></script>
<head><link href="/static/css/main.e7f7b683.css" rel="stylesheet"></head><script type="text/javascript" src="/static/js/main.082a1d43.js"></script>
2 changes: 1 addition & 1 deletion assets/app/build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions assets/app/build/static/css/main.820e0136.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/app/build/static/css/main.820e0136.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions assets/app/build/static/css/main.e7f7b683.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/app/build/static/css/main.e7f7b683.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/app/build/static/js/main.082a1d43.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/app/build/static/js/main.082a1d43.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions assets/app/build/static/js/main.ef1c9dbe.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/app/build/static/js/main.ef1c9dbe.js.map

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ import type {
import type {Position} from 'graphql-language-service-utils';
import type {Hover} from 'vscode-languageserver-types';

import {Kind, parse, print} from 'graphql';
import {getAutocompleteSuggestions} from './getAutocompleteSuggestions';
import {getHoverInformation} from './getHoverInformation';
import {validateQuery, getRange, SEVERITY} from './getDiagnostics';
import {
getDefinitionQueryResultForFragmentSpread,
getDefinitionQueryResultForDefinitionNode,
getDefinitionQueryResultForNamedType,
} from './getDefinition';
import {getASTNodeAtPosition} from 'graphql-language-service-utils';

const {
FRAGMENT_DEFINITION,
OBJECT_TYPE_DEFINITION,
INTERFACE_TYPE_DEFINITION,
Expand All @@ -46,18 +57,7 @@ import {
FRAGMENT_SPREAD,
OPERATION_DEFINITION,
NAMED_TYPE,
} from 'graphql/language/kinds';

import {parse, print} from 'graphql';
import {getAutocompleteSuggestions} from './getAutocompleteSuggestions';
import {getHoverInformation} from './getHoverInformation';
import {validateQuery, getRange, SEVERITY} from './getDiagnostics';
import {
getDefinitionQueryResultForFragmentSpread,
getDefinitionQueryResultForDefinitionNode,
getDefinitionQueryResultForNamedType,
} from './getDefinition';
import {getASTNodeAtPosition} from 'graphql-language-service-utils';
} = Kind;

export class GraphQLLanguageService {
_graphQLCache: GraphQLCache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import type {
TokenKind,
} from 'graphql-language-service-types';

import {parse, visit} from 'graphql';
import {INLINE_FRAGMENT} from 'graphql/language/kinds';
import {Kind, parse, visit} from 'graphql';
import {offsetToPosition} from 'graphql-language-service-utils';

const {INLINE_FRAGMENT} = Kind;

const OUTLINEABLE_KINDS = {
Field: true,
OperationDefinition: true,
Expand Down
Loading

0 comments on commit 7c08302

Please sign in to comment.