peppa/apps/web/app/login/page.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

21 lines
858 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 { 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>
);
}