feat: add user admin status and profile management

- Updated user schema to include isAdmin field.
- Enhanced authentication hooks to fetch and set user admin status.
- Created ProfileButton component for user profile actions.
- Implemented profile and password update functionality.
- Added session management for user accounts.
- Developed login and signup pages with form handling.
- Introduced layout server for user session data.
- Updated daily page to reflect character changes.
This commit is contained in:
2026-03-01 19:52:54 +01:00
parent 031db29d62
commit b45909f86e
14 changed files with 1913 additions and 22 deletions

9
src/app.d.ts vendored
View File

@@ -1,18 +1,11 @@
import type { User, Session } from 'better-auth/minimal';
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Locals {
user?: User;
user?: User & { isAdmin?: boolean };
session?: Session;
}
// interface Error {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}