- 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.
19 lines
512 B
Svelte
19 lines
512 B
Svelte
<script>
|
|
import { DropdownMenu } from 'bits-ui';
|
|
import { cn } from '$lib/utils/cn.js';
|
|
|
|
let { ref = $bindable(null), class: className, active = false, children, ...restProps } = $props();
|
|
</script>
|
|
|
|
<DropdownMenu.Item
|
|
bind:ref
|
|
class={cn(
|
|
'flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-highlighted:bg-surface-hover',
|
|
active && 'text-primary font-medium',
|
|
className,
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</DropdownMenu.Item>
|