frohzinn/bcbsma-storage / llama.cpp /tools /ui /src /lib /components /pwa /PwaRefreshAlert.svelte
frohzinn's picture
download
raw
868 Bytes
<script lang="ts">
import * as Card from '$lib/components/ui/card';
import { Button } from '$lib/components/ui/button';
let { needRefresh: needRefreshProp, updateServiceWorker, forceReload } = $props();
let needRefresh = $derived(needRefreshProp ?? false);
</script>
{#if needRefresh}
<Card.Root class="overflow-hidden gap-1 py-5">
<Card.Header class="px-5">
<Card.Title class="text-sm font-medium">Update available</Card.Title>
</Card.Header>
<Card.Content class="gap-6 grid px-5">
<p class="text-xs text-muted-foreground">A new version is available. Reload to update.</p>
<Button
class="justify-self-end-safe"
size="sm"
onclick={() => {
updateServiceWorker();
if (forceReload) {
window.location.reload();
}
needRefresh = false;
}}
>
Reload
</Button>
</Card.Content>
</Card.Root>
{/if}

Xet Storage Details

Size:
868 Bytes
·
Xet hash:
529bfbd2c48596d5b25b1c97dc1364e5f2e22bb22926681bbdf309a3560afc2e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.