diff --git a/app/src/ui/layouts/AppShell/Header.tsx b/app/src/ui/layouts/AppShell/Header.tsx index 55d93d5..0b313c5 100644 --- a/app/src/ui/layouts/AppShell/Header.tsx +++ b/app/src/ui/layouts/AppShell/Header.tsx @@ -1,5 +1,5 @@ import { SegmentedControl, Tooltip } from "@mantine/core"; -import { IconApi, IconKeyOff, IconSettings, IconUser } from "@tabler/icons-react"; +import { IconApi, IconBook, IconKeyOff, IconSettings, IconUser } from "@tabler/icons-react"; import { TbDatabase, TbFingerprint, @@ -24,6 +24,7 @@ import { useLocation } from "wouter"; import { NavLink } from "./AppShell"; import { autoFormatString } from "core/utils"; import { appShellStore } from "ui/store"; +import { getVersion } from "core/env"; export function HeaderNavigation() { const [location, navigate] = useLocation(); @@ -164,6 +165,11 @@ function UserMenu() { onClick: () => window.open("/api/system/swagger", "_blank"), icon: IconApi, }, + { + label: "Docs", + onClick: () => window.open("https://docs.bknd.io", "_blank"), + icon: IconBook, + }, ]; if (config.auth.enabled) { @@ -182,6 +188,11 @@ function UserMenu() { if (!options.theme) { items.push(() => ); } + items.push(() => ( +
+ {getVersion()} +
+ )); return ( <>