From 384e4ce43ed5e01672fc1a6582601692df5a2f82 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Wed, 11 Aug 2021 10:27:36 +0530 Subject: [PATCH] chore: lint --- assets/scss/styles.scss | 5 +++-- components/app/Footer.vue | 4 ++-- components/graphql/{URLBar.vue => Request.vue} | 0 .../{ContentArea.vue => RequestOptions.vue} | 2 +- .../{ResponseSection.vue => Response.vue} | 0 components/graphql/Sidebar.vue | 8 ++++---- components/smart/Modal.vue | 2 +- newstore/GQLSession.ts | 6 +++--- pages/graphql.vue | 17 +++-------------- 9 files changed, 17 insertions(+), 27 deletions(-) rename components/graphql/{URLBar.vue => Request.vue} (100%) rename components/graphql/{ContentArea.vue => RequestOptions.vue} (99%) rename components/graphql/{ResponseSection.vue => Response.vue} (100%) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 8f620944b..31b291502 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -114,8 +114,9 @@ a { kbd { @apply font-sans; - @apply bg-secondaryDark; - @apply text-primaryDark; + @apply bg-gray-500; + @apply bg-opacity-45; + @apply text-primaryLight; @apply rounded-sm; @apply px-1; @apply ml-1; diff --git a/components/app/Footer.vue b/components/app/Footer.vue index 57f597229..1d373134a 100644 --- a/components/app/Footer.vue +++ b/components/app/Footer.vue @@ -6,7 +6,7 @@ v-tippy="{ theme: 'tooltip' }" :title="LEFT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')" icon="menu_open" - :class="{ 'transform rotate-180': !LEFT_SIDEBAR }" + :class="{ 'transform -rotate-180': !LEFT_SIDEBAR }" @click.native="LEFT_SIDEBAR = !LEFT_SIDEBAR" /> diff --git a/components/graphql/URLBar.vue b/components/graphql/Request.vue similarity index 100% rename from components/graphql/URLBar.vue rename to components/graphql/Request.vue diff --git a/components/graphql/ContentArea.vue b/components/graphql/RequestOptions.vue similarity index 99% rename from components/graphql/ContentArea.vue rename to components/graphql/RequestOptions.vue index 450cb93ae..c5bf351de 100644 --- a/components/graphql/ContentArea.vue +++ b/components/graphql/RequestOptions.vue @@ -401,7 +401,7 @@ export default defineComponent({ logHoppRequestRunToAnalytics({ platform: "graphql-query", - strategy: getCurrentStrategyID() + strategy: getCurrentStrategyID(), }) } diff --git a/components/graphql/ResponseSection.vue b/components/graphql/Response.vue similarity index 100% rename from components/graphql/ResponseSection.vue rename to components/graphql/Response.vue diff --git a/components/graphql/Sidebar.vue b/components/graphql/Sidebar.vue index 37653788d..fd394bfd5 100644 --- a/components/graphql/Sidebar.vue +++ b/components/graphql/Sidebar.vue @@ -214,11 +214,11 @@ import { ref, useContext, } from "@nuxtjs/composition-api" -import { GraphQLField, GraphQLType } from 'graphql' -import { map } from 'rxjs/operators' -import { GQLConnection } from '~/helpers/GQLConnection' +import { GraphQLField, GraphQLType } from "graphql" +import { map } from "rxjs/operators" +import { GQLConnection } from "~/helpers/GQLConnection" import { copyToClipboard } from "~/helpers/utils/clipboard" -import { useReadonlyStream } from '~/helpers/utils/composables' +import { useReadonlyStream } from "~/helpers/utils/composables" import { GQLHeader, setGQLHeaders, diff --git a/components/smart/Modal.vue b/components/smart/Modal.vue index a73cc173f..22fa56917 100644 --- a/components/smart/Modal.vue +++ b/components/smart/Modal.vue @@ -46,7 +46,7 @@ overflow-hidden sm:max-w-md sm:align-middle " - :class="{ 'mt-24': placement === 'top' }" + :class="{ 'mt-24 md:mb-8': placement === 'top' }" >
- - + + - + @@ -65,14 +65,3 @@ export default defineComponent({ }, }) - -