Files
evanpage/frontend/app/(main)/dashboard/page.tsx
evan b0b85f4d3a Initial fullstack project setup with Next.js 15, Gin, PostgreSQL and Docker Compose
- Frontend: Next.js 15 (App Router), Auth.js v5, shadcn/ui, MagicUI
- Backend: Go + Gin + GORM with layered architecture
- Auth: Local credentials login with optional Keycloak OAuth binding
- Admin: RBAC user management for admin role
- Dev: Docker Compose with hot reload for both frontend and backend
- Docker: 3-service orchestration (frontend, backend, postgres)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 15:11:20 +00:00

33 lines
909 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { auth } from "@/auth";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
export default async function DashboardPage() {
const session = await auth();
const user = session?.user as any;
return (
<div className="space-y-4">
<h1 className="text-2xl font-bold">{user?.name || user?.email}</h1>
<Card>
<CardHeader>
<CardTitle></CardTitle>
</CardHeader>
<CardContent className="space-y-2 text-sm">
<p>
<span className="font-medium"></span>
{user?.name}
</p>
<p>
<span className="font-medium"></span>
{user?.email}
</p>
<p>
<span className="font-medium"></span>
{user?.role}
</p>
</CardContent>
</Card>
</div>
);
}