Updated graphql page to use QueryEditor for query field

This commit is contained in:
Andrew Bastin
2020-01-18 04:15:28 -05:00
parent 82756a9c55
commit d8af767dc4

View File

@@ -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() {