A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix: warnings in code
Manuel4f2b8217f819
diff --git a/apps/nextjs/src/app/[locale]/auth/login/_login-form.tsx b/apps/nextjs/src/app/[locale]/auth/login/_login-form.tsxindex ef4dc2aeb..71d249cf5 100644--- a/apps/nextjs/src/app/[locale]/auth/login/_login-form.tsx+++ b/apps/nextjs/src/app/[locale]/auth/login/_login-form.tsx@@ -7,8 +7,6 @@ import { Anchor, Button, Card, Code, Collapse, Divider, PasswordInput, Stack, Teimport { useDisclosure } from "@mantine/hooks";import { z } from "zod/v4";--import { signIn } from "@homarr/auth/client";import { revalidatePathActionAsync } from "@homarr/common/client";import type { useForm } from "@homarr/form";@@ -18,10 +16,6 @@ import { useScopedI18n } from "@homarr/translation/client";import { sanitizeRedirectionUrl } from "@homarr/validation/redirection-url";import { userSignInSchema } from "@homarr/validation/user";----type Provider = "credentials" | "ldap" | "oidc";interface LoginFormProps {diff --git a/apps/nextjs/src/app/[locale]/auth/login/page.tsx b/apps/nextjs/src/app/[locale]/auth/login/page.tsxindex 1dca9baaf..22adf3b87 100644--- a/apps/nextjs/src/app/[locale]/auth/login/page.tsx+++ b/apps/nextjs/src/app/[locale]/auth/login/page.tsx@@ -4,10 +4,10 @@ import { Card, Center, Stack, Text, Title } from "@mantine/core";import { env } from "@homarr/auth/env";import { auth } from "@homarr/auth/next";import { getScopedI18n } from "@homarr/translation/server";+import { sanitizeRedirectionUrl } from "@homarr/validation/redirection-url";import { HomarrLogoWithTitle } from "~/components/layout/logo/homarr-logo";import { LoginForm } from "./_login-form";-import { sanitizeRedirectionUrl } from "@homarr/validation/redirection-url";interface LoginProps {searchParams: Promise<{diff --git a/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx b/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsxindex ce6866ef3..f1185430c 100644--- a/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx+++ b/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx@@ -264,6 +264,5 @@ const usePreventLeaveWithDirty = (isDirty: boolean) => {window.removeEventListener("popstate", handlePopState);window.removeEventListener("beforeunload", handleBeforeUnload);};- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isDirty]);};diff --git a/apps/nextjs/src/app/[locale]/boards/(content)/_ready-context.tsx b/apps/nextjs/src/app/[locale]/boards/(content)/_ready-context.tsxindex dcd07a311..606a296ea 100644--- a/apps/nextjs/src/app/[locale]/boards/(content)/_ready-context.tsx+++ b/apps/nextjs/src/app/[locale]/boards/(content)/_ready-context.tsx@@ -27,7 +27,6 @@ export const BoardReadyProvider = ({ children }: PropsWithChildren) => {useEffect(() => {setReadySections((previous) => previous.filter((id) => board.sections.some((section) => section.id === id)));- // eslint-disable-next-line react-hooks/exhaustive-deps}, [board.sections.length, setReadySections]);const markAsReady = useCallback((id: string) => {diff --git a/apps/nextjs/src/app/[locale]/manage/tools/api/page.tsx b/apps/nextjs/src/app/[locale]/manage/tools/api/page.tsxindex adfa1648a..e848c0fcf 100644--- a/apps/nextjs/src/app/[locale]/manage/tools/api/page.tsx+++ b/apps/nextjs/src/app/[locale]/manage/tools/api/page.tsx@@ -14,7 +14,7 @@ import { ApiKeysManagement } from "./components/api-keys";export async function generateMetadata() {const session = await auth();- if (!session?.user || !session.user.permissions.includes("admin")) {+ if (!session?.user.permissions.includes("admin")) {return {};}@@ -27,7 +27,7 @@ export async function generateMetadata() {export default async function ApiPage() {const session = await auth();- if (!session?.user || !session.user.permissions.includes("admin")) {+ if (!session?.user.permissions.includes("admin")) {notFound();}const document = openApiDocument(extractBaseUrlFromHeaders(await headers()));diff --git a/apps/nextjs/src/app/[locale]/manage/tools/logs/page.tsx b/apps/nextjs/src/app/[locale]/manage/tools/logs/page.tsxindex d672947e4..b6901934c 100644--- a/apps/nextjs/src/app/[locale]/manage/tools/logs/page.tsx+++ b/apps/nextjs/src/app/[locale]/manage/tools/logs/page.tsx@@ -18,7 +18,7 @@ import { LogContextProvider } from "./log-context";export async function generateMetadata() {const session = await auth();- if (!session?.user || !session.user.permissions.includes("admin")) {+ if (!session?.user.permissions.includes("admin")) {return {};}const t = await getScopedI18n("management");@@ -30,7 +30,7 @@ export async function generateMetadata() {export default async function LogsManagementPage() {const session = await auth();- if (!session?.user || !session.user.permissions.includes("other-view-logs")) {+ if (!session?.user.permissions.includes("other-view-logs")) {notFound();}diff --git a/apps/nextjs/src/app/api/health/live/route.ts b/apps/nextjs/src/app/api/health/live/route.tsindex 2576b3f8e..ceeb7dc15 100644--- a/apps/nextjs/src/app/api/health/live/route.ts+++ b/apps/nextjs/src/app/api/health/live/route.ts@@ -75,7 +75,6 @@ const executeHealthCheckSafelyAsync = async (},};} catch (error) {- // eslint-disable-next-line @typescript-eslint/restrict-template-expressionslogger.error(new ErrorWithMetadata("Healthcheck failed", { name }, { cause: error }));return {status: "unhealthy",diff --git a/apps/nextjs/src/components/board/items/item-content.tsx b/apps/nextjs/src/components/board/items/item-content.tsxindex 8f89ba091..d61d05902 100644--- a/apps/nextjs/src/components/board/items/item-content.tsx+++ b/apps/nextjs/src/components/board/items/item-content.tsx@@ -117,7 +117,6 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {when={widgetSupportsIntegrations &&item.integrationIds.length === 0 &&- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition(!("integrationsRequired" in definition) || definition.integrationsRequired !== false)}/>diff --git a/apps/nextjs/src/components/board/sections/gridstack/use-gridstack.ts b/apps/nextjs/src/components/board/sections/gridstack/use-gridstack.tsindex 4f2fef067..eda89a8e6 100644--- a/apps/nextjs/src/components/board/sections/gridstack/use-gridstack.ts+++ b/apps/nextjs/src/components/board/sections/gridstack/use-gridstack.ts@@ -206,7 +206,6 @@ export const useGridstack = (section: Omit<Section, "items">, itemIds: string[])}// Only run this effect when the section items change- // eslint-disable-next-line react-hooks/exhaustive-deps}, [itemIds.length, columnCount]);/**diff --git a/packages/spotlight/src/modes/home/context.tsx b/packages/spotlight/src/modes/home/context.tsxindex 3a681499b..fced7fc06 100644--- a/packages/spotlight/src/modes/home/context.tsx+++ b/packages/spotlight/src/modes/home/context.tsx@@ -94,7 +94,6 @@ const createSpotlightContext = (displayName: string) => {context.unregisterItems(key);};// We ignore the results- // eslint-disable-next-line react-hooks/exhaustive-deps}, [...dependencyArray, key]);};diff --git a/packages/validation/src/redirection-url.ts b/packages/validation/src/redirection-url.tsindex e9de8af69..3121f6726 100644--- a/packages/validation/src/redirection-url.ts+++ b/packages/validation/src/redirection-url.ts@@ -9,6 +9,6 @@ export const sanitizeRedirectionUrl = (url?: string) => {if (url && url.startsWith("/") && !url.startsWith("//")) {return url;} else {- return '/'; // Safe default+ return "/"; // Safe default}-}\ No newline at end of file+};diff --git a/packages/widgets/src/video/component.tsx b/packages/widgets/src/video/component.tsxindex 68038744e..12b6bbde0 100644--- a/packages/widgets/src/video/component.tsx+++ b/packages/widgets/src/video/component.tsx@@ -79,7 +79,6 @@ const Feed = ({ options }: Pick<WidgetComponentProps<"video">, "options">) => {],});// All other properties are updated with other useEffect- // eslint-disable-next-line react-hooks/exhaustive-deps}, [videoRef]);useEffect(() => {