- root package.json carries the Peppa version (0.15.0); next.config.ts stamps version, short/full commit, commit date and a dirty flag at build - Footer on every app page and on the login page, commit linked to Gitea - OpenSpec: pep-59 archived (web-workspace); new planned changes pep-60-platform-channel-digest (Telegram channel of the platform, releases/restarts/digests, superadmin settings) and pep-61-top-menu (Home instead of Inbox, Runners and Projects pages) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import Link from "next/link";
|
||
import type { ReactNode } from "react";
|
||
import { requireUser } from "@/lib/auth";
|
||
import { Footer } from "@/components/Footer";
|
||
|
||
export const dynamic = "force-dynamic";
|
||
|
||
export default async function AppLayout({ children }: { children: ReactNode }) {
|
||
const user = await requireUser();
|
||
return (
|
||
<>
|
||
<header className="top">
|
||
<Link href="/" className="brand">🐷 Peppa</Link>
|
||
<nav>
|
||
<Link href="/">Входящие</Link>
|
||
<Link href="/projects/new">Новый проект</Link>
|
||
<Link href="/settings">Настройки</Link>
|
||
<Link href="/help">Помощь</Link>
|
||
</nav>
|
||
<div className="me">
|
||
{user.avatarUrl && <img src={user.avatarUrl} alt="" width={24} height={24} />}
|
||
<span>{user.login}</span>
|
||
<form action="/logout" method="post">
|
||
<button className="link">Выйти</button>
|
||
</form>
|
||
</div>
|
||
</header>
|
||
<main>{children}</main>
|
||
<Footer />
|
||
</>
|
||
);
|
||
}
|