Spaces:
Running
Running
Download src/lib/components/errors/Error500.svelte from hivetrace/GuardRateLeaderboard: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/errors/Error500.svelte
- Command line
-
hf download hf://spaces/hivetrace/GuardRateLeaderboard/src/lib/components/errors/Error500.svelte
-
curl -L -o Error500.svelte https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/errors/Error500.svelte
792 Bytes
| <script lang="ts"> | |
| import { browser } from '$app/environment'; | |
| import { Button } from '$lib/components/ui/button'; | |
| import Empty from '$lib/components/Empty.svelte'; | |
| import { m } from '$lib/paraglide/messages'; | |
| import { localizeHref } from '$lib/paraglide/runtime'; | |
| import { ServerCrash } from '@lucide/svelte'; | |
| </script> | |
| <Empty | |
| title={m.internal_server_error()} | |
| description={m.sorry_something_went_wrong_on_our_end_we_are_currently_trying_to_fix_the_problem()} | |
| > | |
| {#snippet icon()} | |
| <ServerCrash /> | |
| {/snippet} | |
| {#snippet content()} | |
| <div class="flex gap-2"> | |
| <Button | |
| onclick={() => { | |
| if (browser) location.reload(); | |
| }}>{m.reload_page()}</Button | |
| > | |
| <Button variant="secondary" href={localizeHref('/')}>{m.to_main_page()}</Button> | |
| </div> | |
| {/snippet} | |
| </Empty> | |