From d8dbdb2b9ebc2c3fa364f97dfcc80c8e4269004b Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Wed, 25 Dec 2024 03:23:02 +0100 Subject: [PATCH] fix: turn off `autoComplete` for some inputs --- .../deployments/show-deployment.tsx | 2 +- .../dashboard/project/add-database.tsx | 2 ++ .../cluster/registry/add-docker-registry.tsx | 7 ++++++- .../web-server/manage-traefik-ports.tsx | 20 +++++++++---------- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/deployments/show-deployment.tsx b/apps/dokploy/components/dashboard/application/deployments/show-deployment.tsx index d3096204..39b09d0c 100644 --- a/apps/dokploy/components/dashboard/application/deployments/show-deployment.tsx +++ b/apps/dokploy/components/dashboard/application/deployments/show-deployment.tsx @@ -1,4 +1,5 @@ import { Badge } from "@/components/ui/badge"; +import { Checkbox } from "@/components/ui/checkbox"; import { Dialog, DialogContent, @@ -10,7 +11,6 @@ import { Loader2 } from "lucide-react"; import { useEffect, useRef, useState } from "react"; import { TerminalLine } from "../../docker/logs/terminal-line"; import { type LogLine, parseLogs } from "../../docker/logs/utils"; -import { Checkbox } from "@/components/ui/checkbox"; interface Props { logPath: string | null; diff --git a/apps/dokploy/components/dashboard/project/add-database.tsx b/apps/dokploy/components/dashboard/project/add-database.tsx index ef7a6392..961b37f3 100644 --- a/apps/dokploy/components/dashboard/project/add-database.tsx +++ b/apps/dokploy/components/dashboard/project/add-database.tsx @@ -471,6 +471,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => { @@ -491,6 +492,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => { diff --git a/apps/dokploy/components/dashboard/settings/cluster/registry/add-docker-registry.tsx b/apps/dokploy/components/dashboard/settings/cluster/registry/add-docker-registry.tsx index 0a1ee614..1ee461d2 100644 --- a/apps/dokploy/components/dashboard/settings/cluster/registry/add-docker-registry.tsx +++ b/apps/dokploy/components/dashboard/settings/cluster/registry/add-docker-registry.tsx @@ -159,7 +159,11 @@ export const AddRegistry = () => { Username - + @@ -177,6 +181,7 @@ export const AddRegistry = () => { diff --git a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx index 86500b73..6c784b52 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx @@ -9,14 +9,6 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; -import { Input } from "@/components/ui/input"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; import { Form, FormControl, @@ -25,15 +17,23 @@ import { FormLabel, FormMessage, } from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import { api } from "@/utils/api"; +import { zodResolver } from "@hookform/resolvers/zod"; import { ArrowRightLeft, Plus, Trash2 } from "lucide-react"; import { useTranslation } from "next-i18next"; import type React from "react"; import { useEffect, useState } from "react"; +import { useFieldArray, useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; -import { useFieldArray, useForm } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; interface Props { children: React.ReactNode;