feat: graphql mode for schema editor

This commit is contained in:
liyasthomas
2021-09-10 19:57:52 +05:30
parent 003400cfa8
commit fe6030140f
2 changed files with 3 additions and 3 deletions

View File

@@ -220,6 +220,7 @@ import {
setGQLURL, setGQLURL,
setGQLVariables, setGQLVariables,
} from "~/newstore/GQLSession" } from "~/newstore/GQLSession"
import "~/helpers/editor/modes/graphql"
function isTextFoundInGraphqlFieldObject( function isTextFoundInGraphqlFieldObject(
text: string, text: string,
@@ -396,7 +397,7 @@ useCodemirror(
schemaString, schemaString,
reactive({ reactive({
extendedEditorConfig: { extendedEditorConfig: {
mode: "application/ld+json", mode: "graphql",
readOnly: true, readOnly: true,
lineWrapping: linewrapEnabled, lineWrapping: linewrapEnabled,
}, },

View File

@@ -64,10 +64,9 @@
<textarea-autosize <textarea-autosize
id="import-curl" id="import-curl"
v-model="collectionJSON" v-model="collectionJSON"
class="font-mono p-4" class="font-mono p-4 bg-primary"
autofocus autofocus
rows="8" rows="8"
placeholder=" "
/> />
<div <div
class=" class="