From 4d76c833288c8b5b07eeee636b04a929cfbf7de8 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sun, 8 Aug 2021 12:01:36 +0530 Subject: [PATCH] refactor: improved input validations --- .env.example | 3 +- assets/scss/styles.scss | 6 ++- components/app/Header.vue | 5 +-- components/app/Shortcuts.vue | 16 ++++--- components/collections/Add.vue | 4 ++ components/collections/AddFolder.vue | 4 ++ components/collections/Edit.vue | 4 ++ components/collections/EditFolder.vue | 4 ++ components/collections/EditRequest.vue | 4 ++ components/collections/SaveRequest.vue | 8 ++-- components/collections/index.vue | 6 +-- components/environments/Edit.vue | 26 ++++++------ components/http/ImportCurl.vue | 7 +++- components/smart/Modal.vue | 13 +++++- helpers/fb/index.ts | 2 +- lang/en-US.json | 1 + pages/documentation.vue | 2 +- pages/settings.vue | 58 ++++++++++++++------------ 18 files changed, 105 insertions(+), 68 deletions(-) diff --git a/.env.example b/.env.example index fab8d26ec..7c67ad4b6 100644 --- a/.env.example +++ b/.env.example @@ -12,8 +12,7 @@ PROJECT_ID=postwoman-api STORAGE_BUCKET=postwoman-api.appspot.com MESSAGING_SENDER_ID=421993993223 APP_ID=1:421993993223:web:ec0baa8ee8c02ffa1fc6a2 -MEASUREMENT_ID=G-ERJ6025CEB -FB_MEASUREMENT_ID=G-BBJ3R80PJT +MEASUREMENT_ID=G-BBJ3R80PJT # Base URL BASE_URL=https://hoppscotch.io diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 2e07608e7..96da0afa8 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -206,15 +206,17 @@ button { @apply rounded; @apply transition; @apply absolute; + @apply origin-top-left; } .floating-input:focus-within ~ label, .floating-input:not(:placeholder-shown) ~ label { @apply bg-primary; @apply transform; - @apply origin-center; + @apply origin-top-left; @apply scale-75; - @apply -translate-y-6; + @apply -translate-y-5; + @apply translate-x-1; } .floating-input:focus-within ~ label { diff --git a/components/app/Header.vue b/components/app/Header.vue index d5925e796..489c4be33 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -1,10 +1,7 @@