- Added user management routes and logic in `+page.server.ts` for creating, updating, resetting passwords, and deleting users. - Created a user management interface in `+page.svelte` with dialogs for user actions. - Integrated password validation and hashing using `@node-rs/argon2`. - Updated database schema to include a `user` table with necessary fields. - Seeded a default admin user during database migration if no users exist. - Added necessary dependencies in `package.json`.
22 lines
532 B
Svelte
22 lines
532 B
Svelte
<script lang="ts">
|
|
import { Select as SelectPrimitive } from "bits-ui";
|
|
import { cn } from "$lib/utils.js";
|
|
import type { ComponentProps } from "svelte";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: ComponentProps<typeof SelectPrimitive.GroupHeading> = $props();
|
|
</script>
|
|
|
|
<SelectPrimitive.GroupHeading
|
|
bind:ref
|
|
data-slot="select-group-heading"
|
|
class={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</SelectPrimitive.GroupHeading>
|