From 8a268ee6de9bffc05dcc750484b53694a7782c43 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Mon, 2 Aug 2021 10:00:50 +0530 Subject: [PATCH] refactor(ui): improved empty state for env variables and response sections --- components/environments/Edit.vue | 20 ++++++++ components/environments/Environment.vue | 66 +++++++++++++------------ components/http/ResponseMeta.vue | 42 ++++++++++++++-- 3 files changed, 92 insertions(+), 36 deletions(-) diff --git a/components/environments/Edit.vue b/components/environments/Edit.vue index ee6920197..03210b67d 100644 --- a/components/environments/Edit.vue +++ b/components/environments/Edit.vue @@ -88,6 +88,26 @@ /> +
+ layers + + {{ $t("environments_empty") }} + + +
diff --git a/components/environments/Environment.vue b/components/environments/Environment.vue index 1279b93fc..09cf4ea2a 100644 --- a/components/environments/Environment.vue +++ b/components/environments/Environment.vue @@ -24,39 +24,41 @@ {{ environment.name }} - - - - - + + + - send - - {{ $t("waiting_send_req") }} - +
+
+ {{ $t("send_request") }} + {{ + $t("reset_request") + }} + Show all Shortcuts +
+
+
+ {{ getSpecialKey() }} + G +
+
+ {{ getSpecialKey() }} + I +
+
+ {{ getSpecialKey() }} + ? +
+
+
import findStatusGroup from "~/helpers/findStatusGroup" +import { getPlatformSpecialKey } from "~/helpers/platformutils" export default { props: { @@ -61,5 +81,19 @@ export default { return findStatusGroup(this.response.statusCode) }, }, + methods: { + getSpecialKey: getPlatformSpecialKey, + }, } + +