peppa/apps/web/app/(app)/layout.tsx
Асель ead62e2c5f PEP-59: version and commit in the web footer; plans for PEP-60, PEP-61
- 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>
2026-11-13 03:24:08 +05:00

33 lines
1.0 KiB
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 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 />
</>
);
}