- 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`.
19 lines
472 B
Svelte
19 lines
472 B
Svelte
<script lang="ts">
|
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
...restProps
|
|
}: AlertDialogPrimitive.CancelProps = $props();
|
|
</script>
|
|
|
|
<AlertDialogPrimitive.Cancel
|
|
bind:ref
|
|
data-slot="alert-dialog-cancel"
|
|
class={cn(buttonVariants({ variant: "outline" }), className)}
|
|
{...restProps}
|
|
/>
|