feat: graphql mode for schema editor
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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="
|
||||||
|
|||||||
Reference in New Issue
Block a user