perf: cleanup
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ref="queryEditor" class="w-full block"></div>
|
<div ref="queryEditor"></div>
|
||||||
</AppSection>
|
</AppSection>
|
||||||
</SmartTab>
|
</SmartTab>
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ref="variableEditor" class="w-full block"></div>
|
<div ref="variableEditor"></div>
|
||||||
</AppSection>
|
</AppSection>
|
||||||
</SmartTab>
|
</SmartTab>
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="bulkMode" class="flex">
|
<div v-if="bulkMode" class="flex">
|
||||||
<div ref="bulkEditor" class="w-full block"></div>
|
<div ref="bulkEditor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="responseString" ref="schemaEditor" class="w-full block"></div>
|
<div v-if="responseString" ref="schemaEditor"></div>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
class="
|
class="
|
||||||
|
|||||||
@@ -172,11 +172,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="schemaString" ref="schemaEditor"></div>
|
||||||
v-if="schemaString"
|
|
||||||
ref="schemaEditor"
|
|
||||||
class="w-full block"
|
|
||||||
></div>
|
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
class="
|
class="
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
<div
|
<div
|
||||||
v-if="codegenType"
|
v-if="codegenType"
|
||||||
ref="generatedCode"
|
ref="generatedCode"
|
||||||
class="w-full border border-dividerLight rounded block"
|
class="border border-dividerLight rounded"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="bulkMode" class="flex">
|
<div v-if="bulkMode" class="flex">
|
||||||
<div ref="bulkEditor" class="w-full block"></div>
|
<div ref="bulkEditor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -6,10 +6,7 @@
|
|||||||
>
|
>
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-col px-2">
|
<div class="flex flex-col px-2">
|
||||||
<div
|
<div ref="curlEditor" class="border border-dividerLight rounded"></div>
|
||||||
ref="curlEditor"
|
|
||||||
class="w-full border border-dividerLight rounded block"
|
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="bulkMode" class="flex">
|
<div v-if="bulkMode" class="flex">
|
||||||
<div ref="bulkEditor" class="w-full block"></div>
|
<div ref="bulkEditor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="border-b border-dividerLight flex">
|
<div class="border-b border-dividerLight flex">
|
||||||
<div class="border-r border-dividerLight w-2/3">
|
<div class="border-r border-dividerLight w-2/3">
|
||||||
<div ref="preRrequestEditor" class="w-full block"></div>
|
<div ref="preRrequestEditor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="
|
class="
|
||||||
|
|||||||
@@ -62,9 +62,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative">
|
<div ref="rawBodyParameters"></div>
|
||||||
<div ref="rawBodyParameters" class="w-full block"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="border-b border-dividerLight flex">
|
<div class="border-b border-dividerLight flex">
|
||||||
<div class="border-r border-dividerLight w-2/3">
|
<div class="border-r border-dividerLight w-2/3">
|
||||||
<div ref="testScriptEditor" class="w-full block"></div>
|
<div ref="testScriptEditor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="
|
class="
|
||||||
|
|||||||
@@ -52,19 +52,13 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative">
|
<div v-show="!previewEnabled" ref="htmlResponse"></div>
|
||||||
<div
|
<iframe
|
||||||
v-show="!previewEnabled"
|
v-show="previewEnabled"
|
||||||
ref="htmlResponse"
|
ref="previewFrame"
|
||||||
class="w-full block"
|
class="covers-response"
|
||||||
></div>
|
src="about:blank"
|
||||||
<iframe
|
></iframe>
|
||||||
v-show="previewEnabled"
|
|
||||||
ref="previewFrame"
|
|
||||||
class="covers-response"
|
|
||||||
src="about:blank"
|
|
||||||
></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -27,12 +27,10 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex relative">
|
<img
|
||||||
<img
|
class="border-b border-dividerLight flex max-w-full flex-1"
|
||||||
class="border-b border-dividerLight flex max-w-full flex-1"
|
:src="imageSource"
|
||||||
:src="imageSource"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative">
|
<div ref="jsonResponse"></div>
|
||||||
<div ref="jsonResponse" class="w-full block"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative">
|
<div ref="rawResponse"></div>
|
||||||
<div ref="rawResponse" class="w-full block"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative">
|
<div ref="xmlResponse"></div>
|
||||||
<div ref="xmlResponse" class="w-full block"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import CodeMirror from "codemirror"
|
|||||||
|
|
||||||
import "codemirror-theme-github/theme/github.css"
|
import "codemirror-theme-github/theme/github.css"
|
||||||
import "codemirror/theme/base16-dark.css"
|
import "codemirror/theme/base16-dark.css"
|
||||||
import "codemirror/theme/3024-night.css"
|
import "codemirror/theme/tomorrow-night-bright.css"
|
||||||
|
|
||||||
import "codemirror/lib/codemirror.css"
|
import "codemirror/lib/codemirror.css"
|
||||||
import "codemirror/addon/lint/lint.css"
|
import "codemirror/addon/lint/lint.css"
|
||||||
@@ -168,7 +168,7 @@ export function useCodemirror(
|
|||||||
case "dark":
|
case "dark":
|
||||||
return "base16-dark"
|
return "base16-dark"
|
||||||
case "black":
|
case "black":
|
||||||
return "3024-night"
|
return "tomorrow-night-bright"
|
||||||
default:
|
default:
|
||||||
return "default"
|
return "default"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<Splitpanes
|
||||||
<Splitpanes
|
class="smart-splitter"
|
||||||
class="smart-splitter"
|
:dbl-click-splitter="false"
|
||||||
:dbl-click-splitter="false"
|
:horizontal="!(windowInnerWidth.x.value >= 768)"
|
||||||
:horizontal="!(windowInnerWidth.x.value >= 768)"
|
>
|
||||||
|
<Pane class="hide-scrollbar !overflow-auto">
|
||||||
|
<Splitpanes class="smart-splitter" :dbl-click-splitter="false" horizontal>
|
||||||
|
<Pane class="hide-scrollbar !overflow-auto">
|
||||||
|
<GraphqlRequest :conn="gqlConn" />
|
||||||
|
<GraphqlRequestOptions :conn="gqlConn" />
|
||||||
|
</Pane>
|
||||||
|
<Pane class="hide-scrollbar !overflow-auto">
|
||||||
|
<GraphqlResponse :conn="gqlConn" />
|
||||||
|
</Pane>
|
||||||
|
</Splitpanes>
|
||||||
|
</Pane>
|
||||||
|
<Pane
|
||||||
|
v-if="RIGHT_SIDEBAR"
|
||||||
|
max-size="35"
|
||||||
|
size="25"
|
||||||
|
min-size="20"
|
||||||
|
class="hide-scrollbar !overflow-auto"
|
||||||
>
|
>
|
||||||
<Pane class="hide-scrollbar !overflow-auto">
|
<GraphqlSidebar :conn="gqlConn" />
|
||||||
<Splitpanes
|
</Pane>
|
||||||
class="smart-splitter"
|
</Splitpanes>
|
||||||
:dbl-click-splitter="false"
|
|
||||||
horizontal
|
|
||||||
>
|
|
||||||
<Pane class="hide-scrollbar !overflow-auto">
|
|
||||||
<GraphqlRequest :conn="gqlConn" />
|
|
||||||
<GraphqlRequestOptions :conn="gqlConn" />
|
|
||||||
</Pane>
|
|
||||||
<Pane class="hide-scrollbar !overflow-auto">
|
|
||||||
<GraphqlResponse :conn="gqlConn" />
|
|
||||||
</Pane>
|
|
||||||
</Splitpanes>
|
|
||||||
</Pane>
|
|
||||||
<Pane
|
|
||||||
v-if="RIGHT_SIDEBAR"
|
|
||||||
max-size="35"
|
|
||||||
size="25"
|
|
||||||
min-size="20"
|
|
||||||
class="hide-scrollbar !overflow-auto"
|
|
||||||
>
|
|
||||||
<GraphqlSidebar :conn="gqlConn" />
|
|
||||||
</Pane>
|
|
||||||
</Splitpanes>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user