Updated graphql page to use QueryEditor for query field
This commit is contained in:
@@ -175,7 +175,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Editor
|
<QueryEditor
|
||||||
|
ref="queryEditor"
|
||||||
v-model="gqlQueryString"
|
v-model="gqlQueryString"
|
||||||
:options="{
|
:options="{
|
||||||
maxLines: responseBodyMaxLines,
|
maxLines: responseBodyMaxLines,
|
||||||
@@ -391,6 +392,7 @@ import axios from "axios";
|
|||||||
import * as gql from "graphql";
|
import * as gql from "graphql";
|
||||||
import textareaAutoHeight from "../directives/textareaAutoHeight";
|
import textareaAutoHeight from "../directives/textareaAutoHeight";
|
||||||
import AceEditor from "../components/ace-editor";
|
import AceEditor from "../components/ace-editor";
|
||||||
|
import QueryEditor from "../components/graphql/queryeditor";
|
||||||
import { sendNetworkRequest } from "../functions/network";
|
import { sendNetworkRequest } from "../functions/network";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -402,7 +404,8 @@ export default {
|
|||||||
"gql-field": () => import("../components/graphql/field"),
|
"gql-field": () => import("../components/graphql/field"),
|
||||||
"gql-type": () => import("../components/graphql/type"),
|
"gql-type": () => import("../components/graphql/type"),
|
||||||
autocomplete: () => import("../components/autocomplete"),
|
autocomplete: () => import("../components/autocomplete"),
|
||||||
Editor: AceEditor
|
Editor: AceEditor,
|
||||||
|
QueryEditor: QueryEditor
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -543,6 +546,7 @@ export default {
|
|||||||
responseBodyMaxLines: 16
|
responseBodyMaxLines: 16
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
url: {
|
url: {
|
||||||
get() {
|
get() {
|
||||||
|
|||||||
Reference in New Issue
Block a user