Merge branch 'master' into update-proxy-info

This commit is contained in:
Dmitry Yankowski
2020-02-28 15:11:36 -05:00
committed by GitHub
10 changed files with 467 additions and 120 deletions

View File

@@ -153,7 +153,10 @@
<div class="flex-wrap gqlRunQuery">
<label for="gqlQuery">{{ $t("query") }}</label>
<div>
<button @click="runQuery()" v-tooltip.bottom="$t('run_query')">
<button
@click="runQuery()"
v-tooltip.bottom="`${$t('run_query')} (${getSpecialKey()}-Enter)`"
>
<i class="material-icons">play_arrow</i>
</button>
<button
@@ -169,6 +172,7 @@
<QueryEditor
ref="queryEditor"
v-model="gqlQueryString"
:onRunGQLQuery="runQuery"
:options="{
maxLines: responseBodyMaxLines,
minLines: '16',
@@ -327,6 +331,7 @@ import textareaAutoHeight from "../directives/textareaAutoHeight"
import { commonHeaders } from "../functions/headers"
import AceEditor from "../components/ace-editor"
import QueryEditor from "../components/graphql/queryeditor"
import { getPlatformSpecialKey } from "~/functions/platformutils"
import { sendNetworkRequest } from "../functions/network"
export default {
@@ -424,6 +429,7 @@ export default {
},
},
methods: {
getSpecialKey: getPlatformSpecialKey,
handleJumpToType(type) {
const typesTab = document.getElementById("gqltypes-tab")
typesTab.checked = true