2021-08-09 12:25:30 +00:00
|
|
|
<template>
|
|
|
|
|
<SmartModal
|
|
|
|
|
v-if="show"
|
2022-03-24 00:24:56 +00:00
|
|
|
dialog
|
2021-11-19 17:19:11 +00:00
|
|
|
:title="t('support.title')"
|
2021-09-20 16:03:36 +00:00
|
|
|
max-width="sm:max-w-md"
|
2022-09-29 05:25:21 +00:00
|
|
|
@close="emit('hide-modal')"
|
2021-08-09 12:25:30 +00:00
|
|
|
>
|
|
|
|
|
<template #body>
|
2021-08-10 08:16:42 +00:00
|
|
|
<div class="flex flex-col space-y-2">
|
2021-08-09 12:25:30 +00:00
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconBook"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.documentation')"
|
2021-08-19 17:08:50 +00:00
|
|
|
to="https://docs.hoppscotch.io"
|
2021-11-19 17:19:11 +00:00
|
|
|
:description="t('support.documentation')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-09 12:25:30 +00:00
|
|
|
active
|
|
|
|
|
blank
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="hideModal()"
|
2021-08-09 12:25:30 +00:00
|
|
|
/>
|
|
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconZap"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.keyboard_shortcuts')"
|
|
|
|
|
:description="t('support.shortcuts')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-09 12:25:30 +00:00
|
|
|
active
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="showShortcuts()"
|
2021-08-09 12:25:30 +00:00
|
|
|
/>
|
|
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconGift"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.whats_new')"
|
2021-08-20 09:38:54 +00:00
|
|
|
to="https://docs.hoppscotch.io/changelog"
|
2021-11-19 17:19:11 +00:00
|
|
|
:description="t('support.changelog')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-09 12:25:30 +00:00
|
|
|
active
|
|
|
|
|
blank
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="hideModal()"
|
2021-08-09 12:25:30 +00:00
|
|
|
/>
|
|
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconMessageCircle"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.chat_with_us')"
|
|
|
|
|
:description="t('support.chat')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-09 12:25:30 +00:00
|
|
|
active
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="chatWithUs()"
|
2021-08-09 12:25:30 +00:00
|
|
|
/>
|
2021-08-10 08:16:42 +00:00
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconGitHub"
|
|
|
|
|
:label="t('app.github')"
|
|
|
|
|
to="https://hoppscotch.io/github"
|
|
|
|
|
blank
|
|
|
|
|
:description="t('support.github')"
|
|
|
|
|
:info-icon="IconChevronRight"
|
|
|
|
|
active
|
|
|
|
|
@click="hideModal()"
|
|
|
|
|
/>
|
|
|
|
|
<SmartItem
|
|
|
|
|
:icon="IconDiscord"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.join_discord_community')"
|
2021-08-10 08:16:42 +00:00
|
|
|
to="https://hoppscotch.io/discord"
|
|
|
|
|
blank
|
2021-11-19 17:19:11 +00:00
|
|
|
:description="t('support.community')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-10 08:16:42 +00:00
|
|
|
active
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="hideModal()"
|
2021-08-10 08:16:42 +00:00
|
|
|
/>
|
2021-08-09 12:25:30 +00:00
|
|
|
<SmartItem
|
2022-09-29 05:25:21 +00:00
|
|
|
:icon="IconTwitter"
|
2021-11-19 17:19:11 +00:00
|
|
|
:label="t('app.twitter')"
|
2021-08-28 15:18:13 +00:00
|
|
|
to="https://hoppscotch.io/twitter"
|
2021-08-09 12:25:30 +00:00
|
|
|
blank
|
2021-11-19 17:19:11 +00:00
|
|
|
:description="t('support.twitter')"
|
2022-09-29 05:25:21 +00:00
|
|
|
:info-icon="IconChevronRight"
|
2021-08-09 12:25:30 +00:00
|
|
|
active
|
2022-09-29 05:25:21 +00:00
|
|
|
@click="hideModal()"
|
2021-08-09 12:25:30 +00:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</SmartModal>
|
|
|
|
|
</template>
|
|
|
|
|
|
2021-11-17 11:55:18 +00:00
|
|
|
<script setup lang="ts">
|
2022-09-29 05:25:21 +00:00
|
|
|
import IconTwitter from "~icons/brands/twitter"
|
|
|
|
|
import IconDiscord from "~icons/brands/discord"
|
|
|
|
|
import IconGitHub from "~icons/hopp/github"
|
|
|
|
|
import IconMessageCircle from "~icons/lucide/message-circle"
|
|
|
|
|
import IconGift from "~icons/lucide/gift"
|
|
|
|
|
import IconZap from "~icons/lucide/zap"
|
|
|
|
|
import IconBook from "~icons/lucide/book"
|
|
|
|
|
import IconChevronRight from "~icons/lucide/chevron-right"
|
|
|
|
|
import { invokeAction } from "@helpers/actions"
|
|
|
|
|
import { showChat } from "@modules/crisp"
|
|
|
|
|
import { useI18n } from "@composables/i18n"
|
2021-11-19 17:19:11 +00:00
|
|
|
|
|
|
|
|
const t = useI18n()
|
2021-08-09 12:25:30 +00:00
|
|
|
|
2021-11-17 11:55:18 +00:00
|
|
|
defineProps<{
|
2022-09-29 05:25:21 +00:00
|
|
|
show: boolean
|
2021-11-17 11:55:18 +00:00
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
|
(e: "hide-modal"): void
|
|
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
const chatWithUs = () => {
|
|
|
|
|
showChat()
|
|
|
|
|
hideModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const showShortcuts = () => {
|
|
|
|
|
invokeAction("flyouts.keybinds.toggle")
|
2021-11-21 14:10:15 +00:00
|
|
|
hideModal()
|
2021-11-17 11:55:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const hideModal = () => {
|
|
|
|
|
emit("hide-modal")
|
|
|
|
|
}
|
2021-08-09 12:25:30 +00:00
|
|
|
</script>
|