- 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>
26 lines
909 B
TypeScript
26 lines
909 B
TypeScript
import { loadEnv } from "@peppa/shared";
|
||
|
||
/** Build stamp: which Peppa version and commit is running. */
|
||
export function Footer() {
|
||
const version = process.env.NEXT_PUBLIC_PEPPA_VERSION;
|
||
const commit = process.env.NEXT_PUBLIC_PEPPA_COMMIT;
|
||
const full = process.env.NEXT_PUBLIC_PEPPA_COMMIT_FULL;
|
||
const date = process.env.NEXT_PUBLIC_PEPPA_COMMIT_DATE;
|
||
const dirty = process.env.NEXT_PUBLIC_PEPPA_DIRTY;
|
||
return (
|
||
<footer className="foot muted">
|
||
Peppa v{version}
|
||
{commit && (
|
||
<>
|
||
{" · "}
|
||
<a href={`${loadEnv().GITEA_URL}/peppa-bot/peppa/commit/${full}`} className="mono">
|
||
{commit}
|
||
</a>
|
||
{dirty && <span title="Собрано с незакоммиченными изменениями"> +изменения</span>}
|
||
</>
|
||
)}
|
||
{date && ` · ${new Date(date).toLocaleDateString("ru-RU")}`}
|
||
</footer>
|
||
);
|
||
}
|