|
| 1 | +<script lang="ts"> |
| 2 | + import {t} from 'svelte-i18n-lingui'; |
| 3 | + import {Icon} from '$lib/components/ui/icon'; |
| 4 | + import {useFwLiteConfig} from '$lib/services/service-provider'; |
| 5 | + import {Button} from '$lib/components/ui/button'; |
| 6 | + import ResponsiveDialog from '$lib/components/responsive-dialog/responsive-dialog.svelte'; |
| 7 | +
|
| 8 | + let {open = $bindable()}: { open: boolean } = $props(); |
| 9 | + const config = useFwLiteConfig(); |
| 10 | +
|
| 11 | + const appVersion = config.appVersion; |
| 12 | + const mailtoUrl = `mailto:[email protected]?subject=${encodeURIComponent('FW Lite Feedback')}&body=${encodeURIComponent(`App Version: ${appVersion} on ${config.os.toString()}`)}`; |
| 13 | +</script> |
| 14 | + |
| 15 | +<ResponsiveDialog bind:open title={$t`Feedback`}> |
| 16 | + <div class="flex flex-col gap-4"> |
| 17 | + <Button variant="ghost" href="https://lexbox.org/fw-lite/request-features" target="_blank" class="gap-4 p-4 h-auto text-base justify-start whitespace-normal"> |
| 18 | + <Icon icon="i-mdi-lightbulb-on-outline" class="size-10"/> |
| 19 | + <div> |
| 20 | + <div class="font-semibold underline">{$t`Suggest your ideas`}</div> |
| 21 | + <div class="text-sm text-muted-foreground"> |
| 22 | + {$t`Share your suggestions for new features or improvements.`} |
| 23 | + </div> |
| 24 | + </div> |
| 25 | + </Button> |
| 26 | + <Button variant="ghost" href={config.feedbackUrl} target="_blank" class="gap-4 p-4 h-auto text-base justify-start whitespace-normal"> |
| 27 | + <Icon icon="i-mdi-bug-outline" class="size-10"/> |
| 28 | + <div> |
| 29 | + <div class="font-semibold underline"> |
| 30 | + {$t`Report a technical problem`} |
| 31 | + </div> |
| 32 | + <div |
| 33 | + class="text-sm text-muted-foreground"> |
| 34 | + {$t`Let us know about any bugs or technical issues you encounter.`} |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + </Button> |
| 38 | + <Button variant="ghost" href={mailtoUrl} class="gap-4 p-4 h-auto text-base justify-start whitespace-normal"> |
| 39 | + <Icon icon="i-mdi-email-outline" class="size-10"/> |
| 40 | + <div> |
| 41 | + <div class="font-semibold underline"> |
| 42 | + {$t`Send us a message`} |
| 43 | + </div> |
| 44 | + <div class="text-sm text-muted-foreground"> |
| 45 | + {$t`For any other inquiries, feel free to send us an email.`} |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </Button> |
| 49 | + </div> |
| 50 | +</ResponsiveDialog> |
0 commit comments