From 5daf4a19b7939276ad9ebafd4e018dc9a4288ed7 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 27 Feb 2020 21:32:08 -0500 Subject: [PATCH 1/5] Added Ctrl+Enter as a short cut to run GraphQL Query --- components/graphql/queryeditor.vue | 57 ++++++++++++++++++------------ 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/components/graphql/queryeditor.vue b/components/graphql/queryeditor.vue index c76ba02d7..6378f5f09 100644 --- a/components/graphql/queryeditor.vue +++ b/components/graphql/queryeditor.vue @@ -5,17 +5,17 @@ From 2f2580d2d39871db66988a53b66668b874343bb7 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 27 Feb 2020 21:33:43 -0500 Subject: [PATCH 2/5] Hooked up onRunGQLQuery editor command --- pages/graphql.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/graphql.vue b/pages/graphql.vue index e2b5f7c37..ca8641da5 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -169,6 +169,7 @@ Date: Thu, 27 Feb 2020 21:44:52 -0500 Subject: [PATCH 4/5] Refactor default.vue to use getPlatformSpecialKey --- layouts/default.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 6b18381da..a77c8871b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -642,6 +642,7 @@ import intializePwa from "../assets/js/pwa" import * as version from "../.postwoman/version.json" import { hasExtensionInstalled } from "../functions/strategies/ExtensionStrategy" import { hasChromeExtensionInstalled } from "../functions/strategies/ChromeStrategy" +import { getPlatformSpecialKey } from "~/functions/platformutils" import firebase from "firebase/app" import { fb } from "../functions/fb" @@ -653,9 +654,7 @@ export default { }, methods: { - getSpecialKey() { - return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl" - }, + getSpecialKey: getPlatformSpecialKey, linkActive(path) { return { "nuxt-link-exact-active": this.$route.path === path, From e5e66d8cc00d62af26b30d7d9169349e3edd92ea Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 27 Feb 2020 21:50:01 -0500 Subject: [PATCH 5/5] Added shortcut key to the Run Query button tooltip --- pages/graphql.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index ca8641da5..4d07a1022 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -153,7 +153,10 @@
-