-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Akademiaapp/api-down-handling
Create API down ui
- Loading branch information
Showing
8 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts"> | ||
import { apiDownStore } from '@/api/apiStore'; | ||
import * as Dialog from '$lib/components/ui/dialog'; | ||
import Button from '@/components/ui/button/button.svelte'; | ||
import { RefreshCcw } from 'lucide-svelte'; | ||
let open = false; | ||
$: open = $apiDownStore; | ||
</script> | ||
|
||
<Dialog.Dialog bind:open> | ||
<Dialog.Content class="max-w-[23rem]"> | ||
<Dialog.Title>Oops! ser ud til at API'en er nede</Dialog.Title> | ||
<Dialog.Description | ||
>Det ser ud til, at vores API har besluttet at tage en kaffe-pause og lade vores udviklere | ||
arbejde deres magi bag kulisserne! Vi undskylder for besværet og lover at få det op at køre | ||
igen snarest muligt.</Dialog.Description | ||
> | ||
<div class="flex w-full gap-2"> | ||
<Button variant="outline" class="flex-1" on:click={() => (open = false)}>Luk</Button> | ||
<Button variant="outline" on:click={() => location.reload()} class="aspect-square px-2"> | ||
<RefreshCcw size="14"></RefreshCcw> | ||
</Button> | ||
|
||
<!-- <Button variant="destructive" class="flex-1" on:click={deleteActiveFile}>Ja</Button> --> | ||
</div> | ||
</Dialog.Content> | ||
</Dialog.Dialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters