1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <SmartModal
- v-if="show"
- :title="$t('support.title')"
- max-width="sm:max-w-md"
- @close="$emit('hide-modal')"
- >
- <template #body>
- <div class="flex flex-col space-y-2">
- <SmartItem
- svg="book"
- :label="$t('app.documentation')"
- to="https://docs.hoppscotch.io"
- :description="$t('support.documentation')"
- info-icon="chevron_right"
- active
- blank
- @click.native="hideModal()"
- />
- <SmartItem
- svg="zap"
- :label="$t('app.keyboard_shortcuts')"
- :description="$t('support.shortcuts')"
- info-icon="chevron_right"
- active
- @click.native="showShortcuts()"
- />
- <SmartItem
- svg="gift"
- :label="$t('app.whats_new')"
- to="https://docs.hoppscotch.io/changelog"
- :description="$t('support.changelog')"
- info-icon="chevron_right"
- active
- blank
- @click.native="hideModal()"
- />
- <SmartItem
- svg="message-circle"
- :label="$t('app.chat_with_us')"
- :description="$t('support.chat')"
- info-icon="chevron_right"
- active
- @click.native="chatWithUs()"
- />
- <SmartItem
- svg="brands/discord"
- :label="$t('app.join_discord_community')"
- to="https://hoppscotch.io/discord"
- blank
- :description="$t('support.community')"
- info-icon="chevron_right"
- active
- @click.native="hideModal()"
- />
- <SmartItem
- svg="brands/twitter"
- :label="$t('app.twitter')"
- to="https://hoppscotch.io/twitter"
- blank
- :description="$t('support.twitter')"
- info-icon="chevron_right"
- active
- @click.native="hideModal()"
- />
- </div>
- </template>
- </SmartModal>
- </template>
- <script setup lang="ts">
- import { invokeAction } from "~/helpers/actions"
- import { showChat } from "~/helpers/support"
- defineProps<{
- show: Boolean
- }>()
- const emit = defineEmits<{
- (e: "hide-modal"): void
- }>()
- const chatWithUs = () => {
- showChat()
- hideModal()
- }
- const showShortcuts = () => {
- invokeAction("flyouts.keybinds.toggle")
- }
- const hideModal = () => {
- emit("hide-modal")
- }
- </script>
|