- 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
937 B
Svelte
28 lines
937 B
Svelte
<script>
|
|
import { Dialog } from 'bits-ui';
|
|
import { X } from '@lucide/svelte';
|
|
import { cn } from '$lib/utils/cn.js';
|
|
|
|
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
</script>
|
|
|
|
<Dialog.Portal>
|
|
<Dialog.Overlay class="fixed inset-0 z-50 bg-black/50 animate-in fade-in-0" />
|
|
<Dialog.Content
|
|
bind:ref
|
|
class={cn(
|
|
'fixed left-1/2 top-1/2 z-50 max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-lg border border-border bg-bg p-6 shadow-lg animate-in fade-in-0 zoom-in-95',
|
|
className,
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
<Dialog.Close
|
|
class="absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none"
|
|
>
|
|
<X class="size-4" />
|
|
<span class="sr-only">Close</span>
|
|
</Dialog.Close>
|
|
</Dialog.Content>
|
|
</Dialog.Portal>
|