Skip to content
Draft
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
1 change: 1 addition & 0 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"react": "19.1.0",
"react-dom": "19.1.0",
"react-error-boundary": "^6.0.0",
"react-joyride": "^2.9.3",
"react-simple-code-editor": "^0.14.1",
"sass": "^1.89.1",
"superjson": "2.2.2",
Expand Down
38 changes: 38 additions & 0 deletions apps/nextjs/src/app/[locale]/manage/help/tours/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { auth } from "@homarr/auth/next";
import { getScopedI18n } from "@homarr/translation/server";
import { createMetaTitle } from "~/metadata";
import { ManageContainer } from "~/components/manage/manage-container";
import { DynamicBreadcrumb } from "~/components/navigation/dynamic-breadcrumb";
import { Title, SimpleGrid, Card } from "@mantine/core";

export async function generateMetadata() {
const session = await auth();
if (!session?.user || !session.user.permissions.includes("admin")) {
return {};
}

const t = await getScopedI18n("management");

return {
title: createMetaTitle(t("metaTitle")),
};
}

export default async function ToursPage() {
const t = await getScopedI18n("tours");
return (
<ManageContainer>
<DynamicBreadcrumb/>
<Title>{t("page.title")}</Title>

<SimpleGrid cols={{ base: 1, sm: 2, lg: 5 }}>
<Card></Card>
<Card></Card>
<Card></Card>
<Card></Card>
<Card></Card>
<Card></Card>
</SimpleGrid>
</ManageContainer>
)
}
6 changes: 6 additions & 0 deletions apps/nextjs/src/app/[locale]/manage/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
IconUserFilled,
IconUsers,
IconUsersGroup,
IconMotorbikeFilled
} from "@tabler/icons-react";

import { auth } from "@homarr/auth/next";
Expand Down Expand Up @@ -158,6 +159,11 @@ export default async function ManageLayout({ children }: PropsWithChildren) {
label: t("items.help.label"),
icon: IconHelpSquareRoundedFilled,
items: [
{
label: t("items.help.items.tours"),
icon: IconMotorbikeFilled,
href: "/manage/help/tours"
},
{
label: t("items.help.items.documentation"),
icon: IconBook2,
Expand Down
14 changes: 13 additions & 1 deletion packages/translation/src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,8 @@
"documentation": "Documentation",
"submitIssue": "Submit an issue",
"discord": "Community Discord",
"sourceCode": "Source Code"
"sourceCode": "Source Code",
"tours": "Interactive tours"
}
},
"about": "About"
Expand Down Expand Up @@ -3615,6 +3616,12 @@
"label": "Edit"
}
},
"help": {
"label": "Help",
"tours": {
"label": "Interactive tours"
}
},
"users": {
"label": "Users",
"create": {
Expand Down Expand Up @@ -4156,5 +4163,10 @@
}
}
}
},
"tours": {
"page": {
"title": "Interactive tours"
}
}
}
111 changes: 111 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading