- 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>
21 lines
858 B
TypeScript
21 lines
858 B
TypeScript
import { redirect } from "next/navigation";
|
||
import { currentUser, safeNext } from "@/lib/auth";
|
||
import { Flash } from "@/components/ui";
|
||
import { Footer } from "@/components/Footer";
|
||
|
||
export const dynamic = "force-dynamic";
|
||
|
||
export default async function Login({ searchParams }: { searchParams: Promise<{ error?: string; next?: string }> }) {
|
||
const { error, next } = await searchParams;
|
||
if (await currentUser()) redirect(safeNext(next));
|
||
return (
|
||
<main className="login">
|
||
<h1>🐷 Peppa</h1>
|
||
<p className="muted">Софтвейр-фабрика: проекты в Gitea, задачи по OpenSpec, агенты Claude Code и Codex.</p>
|
||
<Flash error={error} />
|
||
<a className="button primary" href={`/auth/start?next=${encodeURIComponent(safeNext(next))}`}>Войти через Gitea</a>
|
||
<Footer />
|
||
</main>
|
||
);
|
||
}
|