feat(layout): login, uygulama kabuğu, alt menü, hızlı ekle ve dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { SessionUser } from "./types";
|
||||
|
||||
/**
|
||||
* FAZ 2 GEÇİCİ: Better Auth bağlanana kadar arayüzü besleyen sahte oturum.
|
||||
* Faz 3'te `requireSession()` (lib/dal.ts) ile değiştirilecek ve bu dosya silinecek.
|
||||
*/
|
||||
export const MOCK_SESSION_USER: SessionUser = {
|
||||
id: "u_admin",
|
||||
name: "Suphi Çakır",
|
||||
username: "suphi",
|
||||
email: "admin@butcem.local",
|
||||
role: "admin",
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { SystemRole } from "@/shared/schemas/common";
|
||||
|
||||
/** Oturumdaki kullanıcının arayüzde ihtiyaç duyulan özeti. */
|
||||
export type SessionUser = {
|
||||
id: string;
|
||||
name: string;
|
||||
username: string;
|
||||
email?: string;
|
||||
role: SystemRole;
|
||||
image?: string;
|
||||
};
|
||||
Reference in New Issue
Block a user