- Implemented CredentialsDialog for updating user credentials. - Created auth store with functions for managing authentication state. - Added HealthWidget to display server health status. - Introduced health monitoring functionality with polling. - Developed AppShell layout to manage authentication and loading states. - Added SettingsDialog for user preferences including theme and language. - Created utility functions for list management and data fetching. - Implemented dashboard view mode preferences. - Integrated search functionality for filtering lists. - Established theme management with local storage support. - Added utility functions for class name management. - Configured SvelteKit for static site generation with fallback. - Set up Vite for development with proxy support for API calls. - Created About and List detail pages with data fetching and display. - Added favicon and updated project configuration files.
28 lines
747 B
Svelte
28 lines
747 B
Svelte
<script>
|
|
import ListRow from './ListRow.svelte';
|
|
|
|
let { lists, fields, items, onSelect } = $props();
|
|
</script>
|
|
|
|
<table class="w-full text-left text-sm">
|
|
<thead>
|
|
<tr class="text-muted-fg">
|
|
<th class="py-2 font-medium">Name</th>
|
|
<th class="py-2 font-medium">Fields</th>
|
|
<th class="py-2 font-medium">Items</th>
|
|
<th class="py-2 font-medium">Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{#each lists as list (list.id)}
|
|
<ListRow {list} {fields} {items} onClick={onSelect} />
|
|
{/each}
|
|
</tbody>
|
|
</table>
|
|
{#if lists.length === 0}
|
|
<div class="flex flex-col items-center gap-2 py-16 text-center">
|
|
<div class="text-4xl">🔍</div>
|
|
<div class="text-fg">No lists match your filters</div>
|
|
</div>
|
|
{/if}
|