From 0bf856291c67dfc63fb818b35c987ffc3749a0cd Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 27 Nov 2021 19:59:28 +0530 Subject: [PATCH] refactor: lint + minor ui fixes --- .../hoppscotch-app/assets/scss/styles.scss | 3 +- .../components/app/Announcement.vue | 11 +- .../hoppscotch-app/components/app/Header.vue | 7 +- .../components/app/PowerSearch.vue | 23 +-- .../components/app/PowerSearchEntry.vue | 14 +- .../components/app/Shortcuts.vue | 62 ++------ .../components/app/SlideOver.vue | 20 +-- .../components/button/Primary.vue | 15 +- .../components/button/Secondary.vue | 24 +--- .../components/collections/ChooseType.vue | 14 +- .../collections/graphql/Collection.vue | 45 +----- .../components/collections/graphql/Folder.vue | 45 +----- .../collections/graphql/Request.vue | 25 +--- .../components/collections/graphql/index.vue | 18 +-- .../components/collections/index.vue | 20 +-- .../components/collections/my/Collection.vue | 45 +----- .../components/collections/my/Folder.vue | 45 +----- .../components/collections/my/Request.vue | 26 +--- .../collections/teams/Collection.vue | 45 +----- .../components/collections/teams/Folder.vue | 45 +----- .../components/collections/teams/Request.vue | 26 +--- .../components/environments/Edit.vue | 23 +-- .../components/environments/Environment.vue | 13 +- .../components/environments/index.vue | 16 +-- .../components/graphql/Field.vue | 17 +-- .../components/graphql/Request.vue | 15 +- .../components/graphql/RequestOptions.vue | 76 ++-------- .../components/graphql/Response.vue | 28 +--- .../components/graphql/Sidebar.vue | 56 +------- .../components/history/graphql/Card.vue | 20 +-- .../components/history/rest/Card.vue | 15 +- .../components/http/Authorization.vue | 80 +++-------- .../hoppscotch-app/components/http/Body.vue | 18 +-- .../components/http/BodyParameters.vue | 20 +-- .../components/http/Headers.vue | 37 +---- .../components/http/Parameters.vue | 37 +---- .../components/http/PreRequestScript.vue | 36 +---- .../components/http/RawBody.vue | 16 +-- .../components/http/Request.vue | 33 +---- .../components/http/ResponseMeta.vue | 38 +---- .../components/http/TestResult.vue | 22 +-- .../hoppscotch-app/components/http/Tests.vue | 36 +---- .../components/lenses/HeadersRenderer.vue | 45 +----- .../lenses/renderers/HTMLLensRenderer.vue | 16 +-- .../lenses/renderers/ImageLensRenderer.vue | 18 +-- .../lenses/renderers/JSONLensRenderer.vue | 33 +---- .../lenses/renderers/RawLensRenderer.vue | 16 +-- .../lenses/renderers/XMLLensRenderer.vue | 16 +-- .../components/profile/Picture.vue | 22 +-- .../components/realtime/Log.vue | 16 +-- .../components/realtime/Mqtt.vue | 43 ++---- .../components/realtime/Socketio.vue | 64 ++------- .../components/realtime/Sse.vue | 48 +------ .../components/realtime/Websocket.vue | 71 +++------ .../components/smart/Checkbox.vue | 11 +- .../hoppscotch-app/components/smart/Item.vue | 19 +-- .../hoppscotch-app/components/smart/Modal.vue | 23 +-- .../hoppscotch-app/components/tab/Primary.vue | 11 +- .../components/tab/Secondary.vue | 14 +- .../hoppscotch-app/components/teams/Edit.vue | 33 +---- .../components/teams/Invite.vue | 136 +++--------------- .../hoppscotch-app/components/teams/index.vue | 21 +-- .../helpers/editor/themes/baseTheme.ts | 3 +- .../hoppscotch-app/pages/documentation.vue | 70 ++------- packages/hoppscotch-app/pages/graphql.vue | 10 +- packages/hoppscotch-app/pages/index.vue | 10 +- packages/hoppscotch-app/pages/join-team.vue | 21 +-- packages/hoppscotch-app/pages/profile.vue | 34 ++--- 68 files changed, 363 insertions(+), 1691 deletions(-) diff --git a/packages/hoppscotch-app/assets/scss/styles.scss b/packages/hoppscotch-app/assets/scss/styles.scss index ab8e57c58..b6c52a3bc 100644 --- a/packages/hoppscotch-app/assets/scss/styles.scss +++ b/packages/hoppscotch-app/assets/scss/styles.scss @@ -37,7 +37,8 @@ } ::selection { - @apply bg-divider; + @apply bg-accentDark; + @apply text-accentContrast; } input::placeholder, diff --git a/packages/hoppscotch-app/components/app/Announcement.vue b/packages/hoppscotch-app/components/app/Announcement.vue index bee7fcc8a..817015812 100644 --- a/packages/hoppscotch-app/components/app/Announcement.vue +++ b/packages/hoppscotch-app/components/app/Announcement.vue @@ -1,16 +1,7 @@