refactor: move zod import from validation package to zod (#2111)

* refactor: move zod import from validation package to zod

* refactor: move missing zod imports
This commit is contained in:
Meier Lukas
2025-01-26 22:16:27 +01:00
committed by GitHub
parent 1146c59a41
commit c43a2f0488
91 changed files with 153 additions and 99 deletions

View File

@@ -1,8 +1,8 @@
import { IconCalendar } from "@tabler/icons-react";
import { z } from "zod";
import { getIntegrationKindsByCategory } from "@homarr/definitions";
import { radarrReleaseTypes } from "@homarr/integrations/types";
import { z } from "@homarr/validation";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";

View File

@@ -1,8 +1,8 @@
import { IconDownload } from "@tabler/icons-react";
import { z } from "zod";
import { getIntegrationKindsByCategory } from "@homarr/definitions";
import type { ExtendedDownloadClientItem } from "@homarr/integrations";
import { z } from "@homarr/validation";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";

View File

@@ -1,6 +1,5 @@
import { IconTransform } from "@tabler/icons-react";
import { z } from "@homarr/validation";
import { z } from "zod";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";

View File

@@ -1,6 +1,5 @@
import { IconBrandMinecraft } from "@tabler/icons-react";
import { z } from "@homarr/validation";
import { z } from "zod";
import { createWidgetDefinition } from "../../definition";
import { optionsBuilder } from "../../options";

View File

@@ -2,13 +2,13 @@
import { useState } from "react";
import { Button, Group, Stack } from "@mantine/core";
import { z } from "zod";
import { objectEntries } from "@homarr/common";
import type { WidgetKind } from "@homarr/definitions";
import { zodResolver } from "@homarr/form";
import { createModal, useModalAction } from "@homarr/modals";
import { useI18n } from "@homarr/translation/client";
import { z } from "@homarr/validation";
import { zodErrorMap } from "@homarr/validation/form";
import { widgetImports } from "..";

View File

@@ -1,10 +1,10 @@
import type React from "react";
import type { DraggableAttributes, UniqueIdentifier } from "@dnd-kit/core";
import type { ActionIconProps } from "@mantine/core";
import { z } from "zod";
import type { ZodType } from "zod";
import type { IntegrationKind } from "@homarr/definitions";
import type { ZodType } from "@homarr/validation";
import { z } from "@homarr/validation";
import type { inferSelectOptionValue, SelectOption } from "./_inputs/widget-select-input";

View File

@@ -1,6 +1,5 @@
import { IconRss } from "@tabler/icons-react";
import { z } from "@homarr/validation";
import { z } from "zod";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";

View File

@@ -1,7 +1,6 @@
import { IconCloud } from "@tabler/icons-react";
import dayjs from "dayjs";
import { z } from "@homarr/validation";
import { z } from "zod";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";