File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 99 let visits = $state (data .visits );
1010
1111 let kind: Kind | ' all' = $state (' all' );
12- let duration: number = $state (3 * HOUR );
12+ let duration: number = $state (12 * HOUR );
1313 let lastFetch: Date = $state (new Date ());
1414 $effect (() => {
1515 visits = fetch (` /visits?kind=${kind }&duration=${duration } ` )
3333 <select name ="duration" bind:value ={duration } class =" select select-bordered w-full max-w-sm" >
3434 <option value ={3 * HOUR }>3 hours</option >
3535 <option value ={6 * HOUR }>6 hours</option >
36- <option value ={12 * HOUR }>12 hours</option >
36+ <option selected value ={12 * HOUR }>12 hours</option >
3737 <option value ={1 * DAY }>1 days</option >
3838 <option value ={3 * DAY }>3 days</option >
3939 <option value ={6 * DAY }>6 days</option >
4444 </select >
4545</header >
4646{#await visits }
47- Loading...
47+ <div class =" h-full text-center" >
48+ <span class =" loading loading-bars loading-lg" ></span >
49+ </div >
4850{:then visits }
4951 <Dashboard data ={visits } {duration } {kind } {lastFetch } />
5052{:catch err }
You can’t perform that action at this time.
0 commit comments