/profile: two-card layout with personal info form (name, birth date, email, contact) and password change form, each with independent actions. /users/[id]: read-only public view showing name, username, email, contact with avatar circle initials. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
575 B
TypeScript
33 lines
575 B
TypeScript
// src/app.d.ts
|
|
|
|
declare global {
|
|
namespace App {
|
|
// Define the User structure matching your Java Entity
|
|
interface User {
|
|
id: string;
|
|
username: string;
|
|
firstName?: string;
|
|
lastName?: string;
|
|
birthDate?: string;
|
|
email?: string;
|
|
contact?: string;
|
|
groups: {
|
|
name: string;
|
|
permissions: string[];
|
|
}[];
|
|
enabled: boolean;
|
|
createdAt: string;
|
|
}
|
|
|
|
interface Locals {
|
|
user?: User; // locals.user is optional (undefined if not logged in)
|
|
}
|
|
|
|
interface PageData {
|
|
user?: User; // Available in $page.data.user
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|