ADD: added dockerfile and docker-compose and k8s manifest

This commit is contained in:
hwinkel
2026-03-11 22:37:38 +01:00
parent 1ac4fae943
commit f9307d9f4a
14 changed files with 399 additions and 49 deletions
+26 -2
View File
@@ -1,5 +1,5 @@
import { useMatches, Link } from "react-router";
import { ChevronRight } from "lucide-react";
import { useMatches, useLocation, Link } from "react-router";
import { ChevronRight, LayoutDashboard } from "lucide-react";
interface Breadcrumb {
label: string;
@@ -26,6 +26,8 @@ function getInitials(name?: string | null): string {
export function Topbar({ userName }: { userName?: string | null }) {
const matches = useMatches();
const location = useLocation();
const isOnDashboard = location.pathname === "/";
const activeMatch = [...matches].reverse().find((m) => isBreadcrumbHandle(m.handle));
const breadcrumbs: Breadcrumb[] =
@@ -83,6 +85,28 @@ export function Topbar({ userName }: { userName?: string | null }) {
)}
</nav>
{/* Dashboard Button */}
{!isOnDashboard && (
<Link
to="/"
style={{
display: "flex",
alignItems: "center",
gap: "0.375rem",
fontSize: "0.875rem",
color: "#64748b",
textDecoration: "none",
padding: "0.375rem 0.75rem",
borderRadius: "0.375rem",
border: "1px solid #e2e8f0",
flexShrink: 0,
}}
>
<LayoutDashboard className="h-4 w-4" />
Dashboard
</Link>
)}
{/* User */}
{userName && (
<div style={{ display: "flex", alignItems: "center", gap: "0.625rem", marginLeft: "1rem", flexShrink: 0 }}>