Add developer API, Prometheus metrics, and community links

This commit is contained in:
2026-10-12 19:59:37 +05:00
parent 3cc3136762
commit 018be5049e
50 changed files with 4087 additions and 31 deletions

View File

@@ -9,6 +9,7 @@ import { SiteNav } from "./SiteNav";
import { ReportBugButton } from "./ReportBugButton";
import { ThemeToggle } from "./ThemeToggle";
import { CommunityLinks } from "./CommunityLinks";
import { forumUrl } from "@/lib/forum";
export async function Header() {
const { t } = await getI18n();
const account = await user();
@@ -16,7 +17,7 @@ export async function Header() {
<header className="site-header">
<div className="header-inner">
<Brand />
<SiteNav />
<SiteNav forumUrl={forumUrl()} />
<div className="header-actions">
<ThemeToggle />
<ReportBugButton />
@@ -33,6 +34,7 @@ export async function Header() {
}
export async function Footer() {
const { t } = await getI18n();
const forum = forumUrl();
return (
<footer className="site-footer">
<div>
@@ -45,6 +47,18 @@ export async function Footer() {
<LanguageSwitcher />
<Link href="/downloads">{t("Tools & downloads")}</Link>
<Link href="/docs">{t("Docs")}</Link>
{forum && (
<a href={forum} target="_blank" rel="noopener noreferrer">
{t("Forum")}
</a>
)}
<a
href="https://minegeo.instatus.com/"
target="_blank"
rel="noopener noreferrer"
>
{t("Status")}
</a>
<Link href="/leaderboard">{t("Leaderboard")}</Link>
<Link href="/moderation">{t("Moderation")}</Link>
</div>