Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

1.8 KB
Raw Blame
<template>
  <div class="flex flex-col items-center justify-center text-secondaryLight">
    <div class="mb-4 flex space-x-2">
      <div class="flex flex-col items-end space-y-4 text-right">
        <span class="flex flex-1 items-center">
          {{ t("shortcut.request.send_request") }}
        </span>
        <span class="flex flex-1 items-center">
          {{ t("shortcut.general.show_all") }}
        </span>
        <span class="flex flex-1 items-center">
          {{ t("shortcut.general.command_menu") }}
        </span>
        <span class="flex flex-1 items-center">
          {{ t("shortcut.general.help_menu") }}
        </span>
      </div>
      <div class="flex flex-col space-y-4">
        <div class="flex">
          <kbd class="shortcut-key">{{ getSpecialKey() }}</kbd>
          <kbd class="shortcut-key">↩</kbd>
        </div>
        <div class="flex">
          <kbd class="shortcut-key">{{ getSpecialKey() }}</kbd>
          <kbd class="shortcut-key">/</kbd>
        </div>
        <div class="flex">
          <kbd class="shortcut-key">{{ getSpecialKey() }}</kbd>
          <kbd class="shortcut-key">K</kbd>
        </div>
        <div class="flex">
          <kbd class="shortcut-key">?</kbd>
        </div>
      </div>
    </div>
    <HoppButtonSecondary
      :label="`${t('app.documentation')}`"
      :to="documentationUrl"
      :icon="IconExternalLink"
      blank
      outline
      reverse
    />
  </div>
</template>

<script setup lang="ts">
import { useI18n } from "~/composables/i18n"
import IconExternalLink from "~icons/lucide/external-link"
import { getPlatformSpecialKey as getSpecialKey } from "~/helpers/platformutils"

withDefaults(
  defineProps<{
    documentationUrl?: string
  }>(),
  {
    documentationUrl:
      "https://docs.hoppscotch.io/documentation/features/rest-api-testing#response",
  }
)

const t = useI18n()
</script>