char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
f1357e499
char/aliceai-t5-moe
1< script lang ="ts "> 2import { Button } from '$lib/components/ui/button' ; 3import * as Card from '$lib/components/ui/card' ; 4 5let { forceReload, needRefresh :needRefreshProp , updateServiceWorker} = $props (); 6let needRefresh = $derived ( needRefreshProp ?? false ); 7</ script > 8 9{ # if needRefresh } 10< Card.Root class ="overflow-hidden gap-1 py-5 "> 11< Card.Header class ="px-5 "> 12< Card.Title class ="text-sm font-medium "> Update available</ Card.Title > 13</ Card.Header > 14 15< Card.Content class ="gap-6 grid px-5 "> 16< p class ="text-xs text-muted-foreground "> A new version is available. Reload to update.</ p > 17 18< Button 19class ="justify-self-end-safe " 20onclick ={() => { 21updateServiceWorker (); 22 23if ( forceReload ) { 24window . location . reload (); 25} 26 27needRefresh = false ; 28}} 29size ="sm " 30> 31 Reload 32</ Button > 33</ Card.Content > 34</ Card.Root > 35{ / if }