From c9e542d6d590e5892c39f8b464f288285ebef705 Mon Sep 17 00:00:00 2001 From: "Igor Stuzhuk (KoHcoJlb)" Date: Sun, 7 Feb 2021 19:07:09 +0200 Subject: [PATCH] graphql: show enums and interfaces make scalars not clickable --- components/graphql/type.vue | 36 ++++++++++++++++++++++++++++++++- components/graphql/typelink.vue | 17 +++++++++++++++- lang/en-US.json | 3 +++ pages/graphql.vue | 17 +++++++++------- 4 files changed, 64 insertions(+), 9 deletions(-) diff --git a/components/graphql/type.vue b/components/graphql/type.vue index 3634fc2d7..8e5ce989b 100644 --- a/components/graphql/type.vue +++ b/components/graphql/type.vue @@ -2,11 +2,25 @@
input + interface + enum {{ gqlType.name }}
{{ gqlType.description }}
+
+
{{ $t("interfaces") }}
+
+ +
+
+
+
{{ $t("children") }}
+
+ +
+
{{ $t("fields") }}
@@ -17,6 +31,10 @@ />
+
+
{{ $t("values") }}
+
+
@@ -27,11 +45,12 @@ diff --git a/components/graphql/typelink.vue b/components/graphql/typelink.vue index b9af63cb1..7e0b50de9 100644 --- a/components/graphql/typelink.vue +++ b/components/graphql/typelink.vue @@ -1,10 +1,16 @@ diff --git a/lang/en-US.json b/lang/en-US.json index e18fc8fc8..2fadffde3 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -199,7 +199,10 @@ "docs": "Docs", "reset_default": "Reset to default", "fields": "FIELDS", + "interfaces": "INTERFACES", + "children": "CHILDREN", "deprecated": "DEPRECATED", + "values": "VALUES", "add_one_header": "(add at least one header)", "add_one_parameter": "(add at least one parameter)", "header_count": "header {count}", diff --git a/pages/graphql.vue b/pages/graphql.vue index 3bc80175b..e7e19f065 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -364,6 +364,7 @@