Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions apps/web/src/components/SideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ export default function SideNavigation({
description: t`Go to cortex`,
},
},
{
// cachly: Glaeserne Fabrik (Beweisbetrieb) direkt im Board
name: t`Fabrik`,
href: "/fabrik",
icon: isDarkMode ? templatesIconDark : templatesIconLight,
keyboardShortcut: {
type: "SEQUENCE",
strokes: [{ key: "G" }, { key: "F" }],
action: () => router.push("/fabrik"),
group: "NAVIGATION",
description: t`Go to fabrik`,
},
},
{
name: t`Settings`,
href: "/settings",
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/pages/api/mothership/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const ALLOWED: Record<string, string> = {
wissen: "/wissen",
"wissen/data": "/wissen/data",
"wissen/graph": "/wissen/graph",
fabrik: "/fabrik",
};

export default withRateLimit(
Expand Down
24 changes: 24 additions & 0 deletions apps/web/src/pages/fabrik/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { NextPageWithLayout } from "~/pages/_app";
import { getDashboardLayout } from "~/components/Dashboard";

/**
* cachly: Glaeserne Fabrik als nativer Kan-Menuepunkt.
* Die Fabrik ist der Flugschreiber des Beweisbetriebs (alle Gate-Urteile
* als begehbare Zeitleiste); die UI kommt session-gesichert ueber
* /api/mothership/fabrik (Proxy zu hookd).
*/
const FabrikPage: NextPageWithLayout = () => {
return (
<div className="h-full w-full">
<iframe
src="/api/mothership/fabrik"
title="Glaeserne Fabrik"
className="h-full w-full border-0"
/>
</div>
);
};

FabrikPage.getLayout = (page) => getDashboardLayout(page);

export default FabrikPage;
Loading