From 6ed42110040c191505233bde3391b0c344a35673 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Mon, 22 Nov 2021 11:26:43 +0530 Subject: [PATCH] feat: short code redirection --- .../hoppscotch-app/assets/icons/loader.svg | 9 +- .../hoppscotch-app/components/smart/Item.vue | 2 +- .../queries/GetRequestFromShortcode.graphql | 6 + packages/hoppscotch-app/locales/af.json | 2 + packages/hoppscotch-app/locales/ar.json | 2 + packages/hoppscotch-app/locales/ca.json | 2 + packages/hoppscotch-app/locales/cn.json | 2 + packages/hoppscotch-app/locales/cs.json | 2 + packages/hoppscotch-app/locales/da.json | 2 + packages/hoppscotch-app/locales/de.json | 2 + packages/hoppscotch-app/locales/el.json | 2 + packages/hoppscotch-app/locales/en.json | 2 + packages/hoppscotch-app/locales/es.json | 2 + packages/hoppscotch-app/locales/fi.json | 2 + packages/hoppscotch-app/locales/fr.json | 2 + packages/hoppscotch-app/locales/he.json | 2 + packages/hoppscotch-app/locales/hu.json | 2 + packages/hoppscotch-app/locales/it.json | 2 + packages/hoppscotch-app/locales/ja.json | 2 + packages/hoppscotch-app/locales/ko.json | 2 + packages/hoppscotch-app/locales/nl.json | 2 + packages/hoppscotch-app/locales/no.json | 2 + packages/hoppscotch-app/locales/pl.json | 2 + packages/hoppscotch-app/locales/pt-br.json | 2 + packages/hoppscotch-app/locales/pt.json | 2 + packages/hoppscotch-app/locales/ro.json | 2 + packages/hoppscotch-app/locales/ru.json | 2 + packages/hoppscotch-app/locales/sr.json | 2 + packages/hoppscotch-app/locales/sv.json | 2 + packages/hoppscotch-app/locales/tr.json | 2 + packages/hoppscotch-app/locales/tw.json | 2 + packages/hoppscotch-app/locales/uk.json | 2 + packages/hoppscotch-app/locales/vi.json | 2 + packages/hoppscotch-app/pages/r/_id.vue | 128 ++++++++++++++++++ 34 files changed, 196 insertions(+), 9 deletions(-) create mode 100644 packages/hoppscotch-app/helpers/backend/gql/queries/GetRequestFromShortcode.graphql create mode 100644 packages/hoppscotch-app/pages/r/_id.vue diff --git a/packages/hoppscotch-app/assets/icons/loader.svg b/packages/hoppscotch-app/assets/icons/loader.svg index 15ad812b7..51500019d 100644 --- a/packages/hoppscotch-app/assets/icons/loader.svg +++ b/packages/hoppscotch-app/assets/icons/loader.svg @@ -1,10 +1,3 @@ - - - - - - - - + \ No newline at end of file diff --git a/packages/hoppscotch-app/components/smart/Item.vue b/packages/hoppscotch-app/components/smart/Item.vue index b3f9874db..f068e48c2 100644 --- a/packages/hoppscotch-app/components/smart/Item.vue +++ b/packages/hoppscotch-app/components/smart/Item.vue @@ -53,7 +53,7 @@ class="svg-icons" /> - +
+
+
+ error_outline +

+ {{ $t("error.invalid_link") }} +

+

+ {{ $t("error.invalid_link_description") }} +

+
+
+
+ +
+
+
+ error_outline +

+ {{ shortcodeDetails.data.left }} +

+

+ + +

+
+
+

+ {{ $t("state.loading") }} +

+
+
+
+
+ + +