chore: lint

This commit is contained in:
liyasthomas
2021-08-11 10:27:36 +05:30
parent da3f55c910
commit 384e4ce43e
9 changed files with 17 additions and 27 deletions

View File

@@ -114,8 +114,9 @@ a {
kbd { kbd {
@apply font-sans; @apply font-sans;
@apply bg-secondaryDark; @apply bg-gray-500;
@apply text-primaryDark; @apply bg-opacity-45;
@apply text-primaryLight;
@apply rounded-sm; @apply rounded-sm;
@apply px-1; @apply px-1;
@apply ml-1; @apply ml-1;

View File

@@ -6,7 +6,7 @@
v-tippy="{ theme: 'tooltip' }" v-tippy="{ theme: 'tooltip' }"
:title="LEFT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')" :title="LEFT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')"
icon="menu_open" icon="menu_open"
:class="{ 'transform rotate-180': !LEFT_SIDEBAR }" :class="{ 'transform -rotate-180': !LEFT_SIDEBAR }"
@click.native="LEFT_SIDEBAR = !LEFT_SIDEBAR" @click.native="LEFT_SIDEBAR = !LEFT_SIDEBAR"
/> />
<ButtonSecondary <ButtonSecondary
@@ -104,7 +104,7 @@
:title="RIGHT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')" :title="RIGHT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')"
icon="menu_open" icon="menu_open"
class="transform rotate-180" class="transform rotate-180"
:class="{ 'rotate-0': !RIGHT_SIDEBAR }" :class="{ 'rotate-360': !RIGHT_SIDEBAR }"
@click.native="RIGHT_SIDEBAR = !RIGHT_SIDEBAR" @click.native="RIGHT_SIDEBAR = !RIGHT_SIDEBAR"
/> />
</div> </div>

View File

@@ -401,7 +401,7 @@ export default defineComponent({
logHoppRequestRunToAnalytics({ logHoppRequestRunToAnalytics({
platform: "graphql-query", platform: "graphql-query",
strategy: getCurrentStrategyID() strategy: getCurrentStrategyID(),
}) })
} }

View File

@@ -214,11 +214,11 @@ import {
ref, ref,
useContext, useContext,
} from "@nuxtjs/composition-api" } from "@nuxtjs/composition-api"
import { GraphQLField, GraphQLType } from 'graphql' import { GraphQLField, GraphQLType } from "graphql"
import { map } from 'rxjs/operators' import { map } from "rxjs/operators"
import { GQLConnection } from '~/helpers/GQLConnection' import { GQLConnection } from "~/helpers/GQLConnection"
import { copyToClipboard } from "~/helpers/utils/clipboard" import { copyToClipboard } from "~/helpers/utils/clipboard"
import { useReadonlyStream } from '~/helpers/utils/composables' import { useReadonlyStream } from "~/helpers/utils/composables"
import { import {
GQLHeader, GQLHeader,
setGQLHeaders, setGQLHeaders,

View File

@@ -46,7 +46,7 @@
overflow-hidden overflow-hidden
sm:max-w-md sm:align-middle sm:max-w-md sm:align-middle
" "
:class="{ 'mt-24': placement === 'top' }" :class="{ 'mt-24 md:mb-8': placement === 'top' }"
> >
<div <div
v-if="title" v-if="title"

View File

@@ -86,7 +86,7 @@ const dispatchers = defineDispatchers({
return { return {
response: newResponse, response: newResponse,
} }
} },
}) })
export const gqlSessionStore = new DispatchingStore( export const gqlSessionStore = new DispatchingStore(
@@ -136,7 +136,7 @@ export function updateGQLHeader(headerIndex: number, updatedHeader: GQLHeader) {
payload: { payload: {
headerIndex, headerIndex,
updatedHeader, updatedHeader,
} },
}) })
} }
@@ -209,4 +209,4 @@ export const gqlHeaders$ = gqlSessionStore.subject$.pipe(
export const gqlResponse$ = gqlSessionStore.subject$.pipe( export const gqlResponse$ = gqlSessionStore.subject$.pipe(
pluck("response"), pluck("response"),
distinctUntilChanged() distinctUntilChanged()
) )

View File

@@ -4,11 +4,11 @@
<Pane class="hide-scrollbar !overflow-auto"> <Pane class="hide-scrollbar !overflow-auto">
<Splitpanes :dbl-click-splitter="false" horizontal> <Splitpanes :dbl-click-splitter="false" horizontal>
<Pane class="hide-scrollbar !overflow-auto"> <Pane class="hide-scrollbar !overflow-auto">
<GraphqlURLBar :conn="gqlConn" /> <GraphqlRequest :conn="gqlConn" />
<GraphqlContentArea :conn="gqlConn" /> <GraphqlRequestOptions :conn="gqlConn" />
</Pane> </Pane>
<Pane class="hide-scrollbar !overflow-auto"> <Pane class="hide-scrollbar !overflow-auto">
<GraphqlResponseSection :conn="gqlConn" /> <GraphqlResponse :conn="gqlConn" />
</Pane> </Pane>
</Splitpanes> </Splitpanes>
</Pane> </Pane>
@@ -65,14 +65,3 @@ export default defineComponent({
}, },
}) })
</script> </script>
<style lang="scss" scoped>
.shortcut-key {
@apply bg-dividerLight;
@apply rounded;
@apply ml-2;
@apply py-1;
@apply px-2;
@apply inline-flex;
}
</style>