mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-06 00:18:24 +01:00
scripts/site-template is now bitbaum/fleet templates/app — Next.js 16, better-auth accounts (password, link, passkey, 2FA, OrangeCat/bitbaum sign-in as env-gated OIDC), en/de/fr, nonce CSP, ai-kit/mail-kit/limitkit/bip-kit, tests and CI — copied at a pinned fleet commit by scripts/templates/sync-starter.sh. CI proves the copy is exact (sync-starter.sh --check), and starter-sync.yml opens the PR when fleet's starter moves. Never edited here. The kickoff's "nextjs-tailwind" starter seeds the same app from src/lib/starter-app.generated.ts (generated from the directory, pinned by scripts/test/starter-app.ts), minus the workflows register-site.sh adds with the site's CD. The repo is seeded in one Trees API call with inline contents instead of a blob POST per file (~85 for this starter). The widget token rides in .env.production; the starter's .gitleaks.toml allows NEXT_PUBLIC_* values. The new-from-scratch picker reads the light template list, so the starter's file bodies never reach a client bundle. Both paths give the site its database and auth/seal secrets ON THE BOX (scripts/hetzner/provision-db-on-box.sh: role + database, ~/.db-credentials, /opt/<slug>/shared/.env; existing secrets never replaced; nothing printed), and record the db in the register row so every deploy applies drizzle/. register-site.sh seeds the starter's full workflow set to starter repos and the golden CI floor to anything else, never overwriting another repo's ci.yml. test-site-template.sh follows the starter (verify SSOT, design tokens instead of a local palette) and its comment stripper is fixed: the sed range deleted the page from the doc comment to EOF, so every day-zero check had been passing against an empty string. check-template-contrast.mjs and the starter-lock generator are retired with the files they checked. Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy Co-authored-by: Claude <noreply@anthropic.com>
68 lines
2.0 KiB
TypeScript
68 lines
2.0 KiB
TypeScript
import { DevelopmentPage } from "bip-kit/react";
|
|
import "bip-kit/styles.css";
|
|
import { getTranslations } from "next-intl/server";
|
|
import { link, notice, shell } from "@/components/ui";
|
|
import { getPathname } from "@/i18n/navigation";
|
|
import type { Locale } from "@/i18n/routing";
|
|
import { loadDevelopment } from "@/lib/fleet";
|
|
import { ROUTES } from "@/lib/routes";
|
|
import { FLEET_PROFILE_URL, SITE } from "@/lib/site";
|
|
|
|
const LABELS = [
|
|
"roadmap",
|
|
"changelog",
|
|
"home",
|
|
"profile",
|
|
"beta",
|
|
"source",
|
|
"unavailable",
|
|
"emptyRoadmap",
|
|
"emptyChangelog",
|
|
"progress",
|
|
"target",
|
|
] as const;
|
|
|
|
/**
|
|
* The roadmap or the changelog: bip-kit's renderer over the fleet map's copy
|
|
* of this repository's ROADMAP.md / CHANGELOG.md (lib/fleet.ts). Labels are
|
|
* translated; the records are the operator's own words, left as written.
|
|
*
|
|
* When the map has nothing for this product, the page still leads somewhere:
|
|
* the file itself, on GitHub.
|
|
*/
|
|
export async function DevelopmentRecords({
|
|
section,
|
|
locale,
|
|
}: {
|
|
section: "roadmap" | "changelog";
|
|
locale: Locale;
|
|
}) {
|
|
const t = await getTranslations("Records");
|
|
const development = await loadDevelopment();
|
|
const at = (href: string) => getPathname({ href, locale });
|
|
const file = section === "roadmap" ? "ROADMAP.md" : "CHANGELOG.md";
|
|
|
|
return (
|
|
<div className={`${shell} py-10 sm:py-14`}>
|
|
<p className="mb-6 text-sm text-fg-secondary">{t("englishOnly")}</p>
|
|
<DevelopmentPage
|
|
profile={development}
|
|
section={section}
|
|
homeHref={at(ROUTES.home)}
|
|
roadmapHref={at(ROUTES.roadmap)}
|
|
changelogHref={at(ROUTES.changelog)}
|
|
profileHref={FLEET_PROFILE_URL}
|
|
labels={Object.fromEntries(LABELS.map((key) => [key, t(key)]))}
|
|
/>
|
|
{!development && (
|
|
<p className={`${notice} mt-8`}>
|
|
{t("readFile")}{" "}
|
|
<a href={`${SITE.repo}/blob/main/${file}`} className={link}>
|
|
{file}
|
|
</a>
|
|
</p>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|