Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
IconCertificate,
IconCode,
IconGrid3x3,
IconKey,
Expand Down Expand Up @@ -28,4 +29,5 @@ export const integrationSecretIcons = {
githubAppId: IconCode,
githubInstallationId: IconPlug,
privateKey: IconKey,
clientCertificate: IconCertificate,
} satisfies Record<IntegrationSecretKind, TablerIcon>;
7 changes: 7 additions & 0 deletions apps/nextjs/src/app/[locale]/manage/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
IconPhotoFilled,
IconPointerFilled,
IconSearch,
IconServer,
IconSettingsFilled,
IconUserFilled,
IconUsers,
Expand Down Expand Up @@ -116,6 +117,12 @@ export default async function ManageLayout({ children }: PropsWithChildren) {
href: "/manage/tools/docker",
hidden: !(session?.user.permissions.includes("admin") && env.ENABLE_DOCKER),
},
{
label: "Incus",
icon: IconServer,
href: "/manage/tools/incus",
hidden: !session?.user.permissions.includes("admin"),
},
{
label: t("items.tools.items.kubernetes"),
icon: IconBox,
Expand Down
24 changes: 24 additions & 0 deletions apps/nextjs/src/app/[locale]/manage/tools/incus/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use client";

import { Anchor, Center, Stack, Text } from "@mantine/core";
import { IconServerOff } from "@tabler/icons-react";

import { Link } from "@homarr/ui";

export default function IncusErrorPage() {
return (
<Center>
<Stack align="center">
<IconServerOff size={48} stroke={1.5} />
<Stack align="center" gap="xs">
<Text size="lg" fw={500}>
Failed to fetch Incus instances
</Text>
<Anchor size="sm" component={Link} href="/manage/tools/logs">
Check logs
</Anchor>
</Stack>
</Stack>
</Center>
);
}
Loading