From f8aeb42da57c95b1f8a61b633b3c4e4f5a69f3f4 Mon Sep 17 00:00:00 2001 From: nivedin Date: Thu, 9 Nov 2023 14:07:56 +0530 Subject: [PATCH] chore: improve UI flow and add i18n --- .../assets/themes/base-themes.scss | 1 + packages/hoppscotch-common/locales/en.json | 2 + .../src/components/collections/Properties.vue | 58 +++++++++++-------- .../src/components/http/Authorization.vue | 6 ++ .../src/components/http/Headers.vue | 12 +++- .../src/assets/scss/histoire.scss | 1 + .../src/components/smart/Modal.vue | 4 +- 7 files changed, 55 insertions(+), 29 deletions(-) diff --git a/packages/hoppscotch-common/assets/themes/base-themes.scss b/packages/hoppscotch-common/assets/themes/base-themes.scss index d8258a347..73a228cb7 100644 --- a/packages/hoppscotch-common/assets/themes/base-themes.scss +++ b/packages/hoppscotch-common/assets/themes/base-themes.scss @@ -17,6 +17,7 @@ --lower-tertiary-sticky-fold: 7.125rem; --lower-fourth-sticky-fold: 9.188rem; --sidebar-primary-sticky-fold: 2rem; + --properties-primary-sticky-fold: 2.05rem; } @mixin light-theme { diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index abb77d8e3..032309d39 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -356,6 +356,8 @@ "offline_short": "You're using Hoppscotch offline.", "post_request_tests": "Test scripts are written in JavaScript, and are run after the response is received.", "pre_request_script": "Pre-request scripts are written in JavaScript, and are run before the request is sent.", + "collection_properties_authorization": " This authorization will be set for every request in this collection.", + "collection_properties_header": "This header will be set for every request in this collection.", "script_fail": "It seems there is a glitch in the pre-request script. Check the error below and fix the script accordingly.", "test_script_fail": "There seems to be an error with test script. Please fix the errors and run tests again", "tests": "Write a test script to automate debugging." diff --git a/packages/hoppscotch-common/src/components/collections/Properties.vue b/packages/hoppscotch-common/src/components/collections/Properties.vue index 23ab50260..8d1279b21 100644 --- a/packages/hoppscotch-common/src/components/collections/Properties.vue +++ b/packages/hoppscotch-common/src/components/collections/Properties.vue @@ -3,19 +3,44 @@ v-if="show" dialog :title="t('collection.properties')" + :full-width-body="true" @close="hideModal" >