From f2de0dc6735a315dce7309845f7241c563579f02 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 28 Feb 2023 16:25:46 +0530 Subject: [PATCH] chore: minor ui improvements --- packages/hoppscotch-common/assets/icons/github.svg | 13 ------------- packages/hoppscotch-common/src/components.d.ts | 1 + .../hoppscotch-common/src/components/app/Header.vue | 3 +-- .../src/components/app/Options.vue | 2 +- .../src/components/app/Support.vue | 2 +- .../src/components/http/Request.vue | 2 -- .../src/components/workspace/Selector.vue | 8 -------- 7 files changed, 4 insertions(+), 27 deletions(-) delete mode 100644 packages/hoppscotch-common/assets/icons/github.svg diff --git a/packages/hoppscotch-common/assets/icons/github.svg b/packages/hoppscotch-common/assets/icons/github.svg deleted file mode 100644 index 67c833827..000000000 --- a/packages/hoppscotch-common/assets/icons/github.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index 40471f3c5..970a9ec0b 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -89,6 +89,7 @@ declare module '@vue/runtime-core' { HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner'] HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab'] HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs'] + HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle'] HttpAuthorization: typeof import('./components/http/Authorization.vue')['default'] HttpBody: typeof import('./components/http/Body.vue')['default'] HttpBodyParameters: typeof import('./components/http/BodyParameters.vue')['default'] diff --git a/packages/hoppscotch-common/src/components/app/Header.vue b/packages/hoppscotch-common/src/components/app/Header.vue index c1c9bbb28..53ab0a975 100644 --- a/packages/hoppscotch-common/src/components/app/Header.vue +++ b/packages/hoppscotch-common/src/components/app/Header.vue @@ -18,7 +18,7 @@
- +
import IconTwitter from "~icons/brands/twitter" import IconDiscord from "~icons/brands/discord" -import IconGitHub from "~icons/hopp/github" +import IconGitHub from "~icons/lucide/github" import IconMessageCircle from "~icons/lucide/message-circle" import IconGift from "~icons/lucide/gift" import IconZap from "~icons/lucide/zap" diff --git a/packages/hoppscotch-common/src/components/http/Request.vue b/packages/hoppscotch-common/src/components/http/Request.vue index f0ba577b4..921f81625 100644 --- a/packages/hoppscotch-common/src/components/http/Request.vue +++ b/packages/hoppscotch-common/src/components/http/Request.vue @@ -161,7 +161,6 @@ ref="saveTippyActions" class="flex flex-col focus:outline-none" tabindex="0" - @keyup.c="copyRequestAction.$el.click()" @keyup.s="saveRequestAction.$el.click()" @keyup.escape="hide()" > @@ -180,7 +179,6 @@ :label="shareButtonText" :icon="copyLinkIcon" :loading="fetchingShareLink" - :shortcut="['C']" @click=" () => { copyRequest() diff --git a/packages/hoppscotch-common/src/components/workspace/Selector.vue b/packages/hoppscotch-common/src/components/workspace/Selector.vue index 733d4d49d..2724e2347 100644 --- a/packages/hoppscotch-common/src/components/workspace/Selector.vue +++ b/packages/hoppscotch-common/src/components/workspace/Selector.vue @@ -19,12 +19,6 @@ v-if="!loading && myTeams.length === 0" class="flex flex-col items-center justify-center flex-1 p-4 text-secondaryLight" > - {{ t("empty.teams") }} @@ -84,14 +78,12 @@ import { useI18n } from "@composables/i18n" import IconUser from "~icons/lucide/user" import IconUsers from "~icons/lucide/users" import IconPlus from "~icons/lucide/plus" -import { useColorMode } from "@composables/theming" import { changeWorkspace, workspaceStatus$ } from "~/newstore/workspace" import { GetMyTeamsQuery } from "~/helpers/backend/graphql" import IconDone from "~icons/lucide/check" import { useLocalState } from "~/newstore/localstate" const t = useI18n() -const colorMode = useColorMode() const showModalAdd = ref(false)