From 10cb433e80991e760d89a64c4f465c8b772ad40a Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 24 Dec 2021 08:12:35 +0530 Subject: [PATCH] chore(ui): improve ui consistency --- .../hoppscotch-app/assets/icons/activity.svg | 3 +++ .../hoppscotch-app/assets/scss/themes.scss | 4 ++-- .../hoppscotch-app/components/app/Footer.vue | 22 ++++++++++++------- .../hoppscotch-app/components/app/Header.vue | 9 ++++++++ .../components/app/Interceptor.vue | 6 ++--- .../components/http/Authorization.vue | 7 ++++++ .../components/http/ResponseMeta.vue | 6 ++--- .../components/smart/ChangeLanguage.vue | 20 ++++++++++++----- .../components/smart/FontSizePicker.vue | 5 ++++- .../hoppscotch-app/components/smart/Item.vue | 8 +++---- .../hoppscotch-app/components/smart/Radio.vue | 22 +++++++++---------- .../components/smart/RadioGroup.vue | 2 +- .../components/smart/Toggle.vue | 8 +++---- .../hoppscotch-app/components/tab/Primary.vue | 8 +++---- .../hoppscotch-app/components/teams/Edit.vue | 3 +++ .../components/teams/Invite.vue | 3 +++ packages/hoppscotch-app/locales/en.json | 2 +- 17 files changed, 90 insertions(+), 48 deletions(-) create mode 100644 packages/hoppscotch-app/assets/icons/activity.svg diff --git a/packages/hoppscotch-app/assets/icons/activity.svg b/packages/hoppscotch-app/assets/icons/activity.svg new file mode 100644 index 000000000..6a5ab671d --- /dev/null +++ b/packages/hoppscotch-app/assets/icons/activity.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/packages/hoppscotch-app/assets/scss/themes.scss b/packages/hoppscotch-app/assets/scss/themes.scss index 19bfffeef..0e9511a00 100644 --- a/packages/hoppscotch-app/assets/scss/themes.scss +++ b/packages/hoppscotch-app/assets/scss/themes.scss @@ -45,11 +45,11 @@ --secondary-light-color: theme("colors.true-gray.500"); --secondary-dark-color: theme("colors.true-gray.100"); --divider-color: theme("colors.true-gray.800"); - --divider-light-color: theme("colors.dark.700"); + --divider-light-color: theme("colors.dark.800"); --divider-dark-color: theme("colors.dark.300"); --error-color: theme("colors.warm-gray.900"); --tooltip-color: theme("colors.true-gray.100"); - --popover-color: theme("colors.dark.700"); + --popover-color: theme("colors.dark.600"); --editor-theme: "twilight"; } diff --git a/packages/hoppscotch-app/components/app/Footer.vue b/packages/hoppscotch-app/components/app/Footer.vue index e25d897bf..2262a6a9b 100644 --- a/packages/hoppscotch-app/components/app/Footer.vue +++ b/packages/hoppscotch-app/components/app/Footer.vue @@ -97,6 +97,20 @@ } " /> + +
- -
{{ `${t("app.name")} ${t("app.version")}` }}
diff --git a/packages/hoppscotch-app/components/app/Header.vue b/packages/hoppscotch-app/components/app/Header.vue index fe368da9f..022917625 100644 --- a/packages/hoppscotch-app/components/app/Header.vue +++ b/packages/hoppscotch-app/components/app/Header.vue @@ -85,6 +85,15 @@ svg="user" /> +
+ + {{ currentUser.displayName }} + + + {{ currentUser.email }} + +
+
-
+
-

+

{{ t("settings.interceptor") }}

-

+

{{ t("settings.interceptor_description") }}

diff --git a/packages/hoppscotch-app/components/http/Authorization.vue b/packages/hoppscotch-app/components/http/Authorization.vue index c5bcb8d90..e0a4b496e 100644 --- a/packages/hoppscotch-app/components/http/Authorization.vue +++ b/packages/hoppscotch-app/components/http/Authorization.vue @@ -29,6 +29,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="authName === 'None'" @click.native=" () => { authType = 'none' @@ -43,6 +44,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="authName === 'Basic Auth'" @click.native=" () => { authType = 'basic' @@ -57,6 +59,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="authName === 'Bearer'" @click.native=" () => { authType = 'bearer' @@ -71,6 +74,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="authName === 'OAuth 2.0'" @click.native=" () => { authType = 'oauth-2' @@ -85,6 +89,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="authName === 'API key'" @click.native=" () => { authType = 'api-key' @@ -223,6 +228,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="addTo === 'Headers'" :label="'Headers'" @click.native=" () => { @@ -237,6 +243,7 @@ ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="addTo === 'Query params'" :label="'Query params'" @click.native=" () => { diff --git a/packages/hoppscotch-app/components/http/ResponseMeta.vue b/packages/hoppscotch-app/components/http/ResponseMeta.vue index 9e20baf3c..18cc0c35d 100644 --- a/packages/hoppscotch-app/components/http/ResponseMeta.vue +++ b/packages/hoppscotch-app/components/http/ResponseMeta.vue @@ -69,11 +69,11 @@ {{ t("error.network_fail") }} {{ t("helpers.network_fail") }} - +
{{ t("helpers.script_fail") }} diff --git a/packages/hoppscotch-app/components/smart/ChangeLanguage.vue b/packages/hoppscotch-app/components/smart/ChangeLanguage.vue index 0929f709c..8ad64b3c2 100644 --- a/packages/hoppscotch-app/components/smart/ChangeLanguage.vue +++ b/packages/hoppscotch-app/components/smart/ChangeLanguage.vue @@ -16,15 +16,23 @@ - + + + diff --git a/packages/hoppscotch-app/components/smart/FontSizePicker.vue b/packages/hoppscotch-app/components/smart/FontSizePicker.vue index 9f86c4aca..03b90dd4f 100644 --- a/packages/hoppscotch-app/components/smart/FontSizePicker.vue +++ b/packages/hoppscotch-app/components/smart/FontSizePicker.vue @@ -22,10 +22,11 @@ :icon=" size === active ? 'radio_button_checked' : 'radio_button_unchecked' " + :active="size === active" @click.native=" () => { setActiveFont(size) - $refs.fontSize.tippy().hide() + fontSize.tippy().hide() } " /> @@ -34,6 +35,7 @@