From 995a04d30f6d4f5a588e55a11773cd0007fbed0f Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Wed, 8 Jul 2026 12:28:41 -0600 Subject: [PATCH] chore(ui): reorganize imports across multiple components and tests for consistency --- .../__test__/git-provider/git-provider-access.test.ts | 2 +- .../components/dashboard/application/general/show.tsx | 2 +- .../preview-deployments/show-preview-deployments.tsx | 2 +- .../components/dashboard/compose/general/actions.tsx | 2 +- .../dashboard/libsql/general/show-general-libsql.tsx | 2 +- .../dashboard/mariadb/general/show-general-mariadb.tsx | 2 +- .../dashboard/mongo/general/show-general-mongo.tsx | 2 +- .../dashboard/mysql/general/show-general-mysql.tsx | 2 +- .../dashboard/postgres/general/show-general-postgres.tsx | 2 +- .../dashboard/redis/general/show-general-redis.tsx | 2 +- apps/dokploy/components/ui/accordion.tsx | 7 +++---- apps/dokploy/components/ui/alert-dialog.tsx | 5 ++--- apps/dokploy/components/ui/alert.tsx | 2 +- apps/dokploy/components/ui/avatar.tsx | 2 +- apps/dokploy/components/ui/breadcrumb.tsx | 7 +++---- apps/dokploy/components/ui/card.tsx | 2 +- apps/dokploy/components/ui/chart.tsx | 2 +- apps/dokploy/components/ui/checkbox.tsx | 7 +++---- apps/dokploy/components/ui/context-menu.tsx | 5 ++--- apps/dokploy/components/ui/dialog.tsx | 7 +++---- apps/dokploy/components/ui/dropdown-menu.tsx | 9 ++++----- apps/dokploy/components/ui/file-tree.tsx | 2 +- apps/dokploy/components/ui/form.tsx | 2 +- apps/dokploy/components/ui/input-group.tsx | 5 ++--- apps/dokploy/components/ui/input-otp.tsx | 5 ++--- apps/dokploy/components/ui/label.tsx | 2 +- apps/dokploy/components/ui/popover.tsx | 5 ++--- apps/dokploy/components/ui/progress.tsx | 2 +- apps/dokploy/components/ui/radio-group.tsx | 2 +- apps/dokploy/components/ui/scroll-area.tsx | 2 +- apps/dokploy/components/ui/select.tsx | 5 ++--- apps/dokploy/components/ui/separator.tsx | 2 +- apps/dokploy/components/ui/sheet.tsx | 9 ++++----- apps/dokploy/components/ui/sonner.tsx | 8 ++++---- apps/dokploy/components/ui/switch.tsx | 2 +- apps/dokploy/components/ui/table.tsx | 2 +- apps/dokploy/components/ui/tabs.tsx | 2 +- apps/dokploy/components/ui/textarea.tsx | 2 +- apps/dokploy/components/ui/toggle.tsx | 2 +- packages/server/src/utils/cluster/upload.ts | 2 +- 40 files changed, 63 insertions(+), 75 deletions(-) diff --git a/apps/dokploy/__test__/git-provider/git-provider-access.test.ts b/apps/dokploy/__test__/git-provider/git-provider-access.test.ts index 4ddf36244..714607538 100644 --- a/apps/dokploy/__test__/git-provider/git-provider-access.test.ts +++ b/apps/dokploy/__test__/git-provider/git-provider-access.test.ts @@ -1,8 +1,8 @@ -import { beforeEach, describe, expect, it, vi } from "vitest"; import { canEditDeployGitSource, getAccessibleGitProviderIds, } from "@dokploy/server/services/git-provider"; +import { beforeEach, describe, expect, it, vi } from "vitest"; const mockDb = vi.hoisted(() => ({ query: { diff --git a/apps/dokploy/components/dashboard/application/general/show.tsx b/apps/dokploy/components/dashboard/application/general/show.tsx index 670df35c4..67622662a 100644 --- a/apps/dokploy/components/dashboard/application/general/show.tsx +++ b/apps/dokploy/components/dashboard/application/general/show.tsx @@ -1,4 +1,3 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, @@ -8,6 +7,7 @@ import { Terminal, } from "lucide-react"; import { useRouter } from "next/router"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { toast } from "sonner"; import { ShowBuildChooseForm } from "@/components/dashboard/application/build/show"; import { ShowProviderForm } from "@/components/dashboard/application/general/generic/show"; diff --git a/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-deployments.tsx b/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-deployments.tsx index f3869bb4f..49a9e50b4 100644 --- a/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-deployments.tsx +++ b/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-deployments.tsx @@ -1,4 +1,3 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { ExternalLink, FileText, @@ -9,6 +8,7 @@ import { RocketIcon, Trash2, } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { toast } from "sonner"; import { GithubIcon } from "@/components/icons/data-tools-icons"; import { DateTooltip } from "@/components/shared/date-tooltip"; diff --git a/apps/dokploy/components/dashboard/compose/general/actions.tsx b/apps/dokploy/components/dashboard/compose/general/actions.tsx index 79699b7f1..c2b984b39 100644 --- a/apps/dokploy/components/dashboard/compose/general/actions.tsx +++ b/apps/dokploy/components/dashboard/compose/general/actions.tsx @@ -1,6 +1,6 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { useRouter } from "next/router"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; import { Button } from "@/components/ui/button"; diff --git a/apps/dokploy/components/dashboard/libsql/general/show-general-libsql.tsx b/apps/dokploy/components/dashboard/libsql/general/show-general-libsql.tsx index 271115278..237a30595 100644 --- a/apps/dokploy/components/dashboard/libsql/general/show-general-libsql.tsx +++ b/apps/dokploy/components/dashboard/libsql/general/show-general-libsql.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/dashboard/mariadb/general/show-general-mariadb.tsx b/apps/dokploy/components/dashboard/mariadb/general/show-general-mariadb.tsx index 8ffa30966..0a0e0d9aa 100644 --- a/apps/dokploy/components/dashboard/mariadb/general/show-general-mariadb.tsx +++ b/apps/dokploy/components/dashboard/mariadb/general/show-general-mariadb.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/dashboard/mongo/general/show-general-mongo.tsx b/apps/dokploy/components/dashboard/mongo/general/show-general-mongo.tsx index 237200ee6..cc8304108 100644 --- a/apps/dokploy/components/dashboard/mongo/general/show-general-mongo.tsx +++ b/apps/dokploy/components/dashboard/mongo/general/show-general-mongo.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/dashboard/mysql/general/show-general-mysql.tsx b/apps/dokploy/components/dashboard/mysql/general/show-general-mysql.tsx index e37339626..7b8991c3e 100644 --- a/apps/dokploy/components/dashboard/mysql/general/show-general-mysql.tsx +++ b/apps/dokploy/components/dashboard/mysql/general/show-general-mysql.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/dashboard/postgres/general/show-general-postgres.tsx b/apps/dokploy/components/dashboard/postgres/general/show-general-postgres.tsx index c21a32aeb..4fb78a298 100644 --- a/apps/dokploy/components/dashboard/postgres/general/show-general-postgres.tsx +++ b/apps/dokploy/components/dashboard/postgres/general/show-general-postgres.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/dashboard/redis/general/show-general-redis.tsx b/apps/dokploy/components/dashboard/redis/general/show-general-redis.tsx index 3d1a1f051..d95a36897 100644 --- a/apps/dokploy/components/dashboard/redis/general/show-general-redis.tsx +++ b/apps/dokploy/components/dashboard/redis/general/show-general-redis.tsx @@ -1,5 +1,5 @@ -import { Tooltip as TooltipPrimitive } from "radix-ui"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; +import { Tooltip as TooltipPrimitive } from "radix-ui"; import { useState } from "react"; import { toast } from "sonner"; import { DialogAction } from "@/components/shared/dialog-action"; diff --git a/apps/dokploy/components/ui/accordion.tsx b/apps/dokploy/components/ui/accordion.tsx index bc1be39d6..54dd990b1 100644 --- a/apps/dokploy/components/ui/accordion.tsx +++ b/apps/dokploy/components/ui/accordion.tsx @@ -1,8 +1,7 @@ -import * as React from "react"; -import { Accordion as AccordionPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; import { ChevronDownIcon, ChevronUpIcon } from "lucide-react"; +import { Accordion as AccordionPrimitive } from "radix-ui"; +import type * as React from "react"; +import { cn } from "@/lib/utils"; function Accordion({ className, diff --git a/apps/dokploy/components/ui/alert-dialog.tsx b/apps/dokploy/components/ui/alert-dialog.tsx index 70d4a6352..9674276a8 100644 --- a/apps/dokploy/components/ui/alert-dialog.tsx +++ b/apps/dokploy/components/ui/alert-dialog.tsx @@ -1,10 +1,9 @@ "use client"; -import * as React from "react"; import { AlertDialog as AlertDialogPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; +import type * as React from "react"; import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; function AlertDialog({ ...props diff --git a/apps/dokploy/components/ui/alert.tsx b/apps/dokploy/components/ui/alert.tsx index 6207f086c..4c873f59b 100644 --- a/apps/dokploy/components/ui/alert.tsx +++ b/apps/dokploy/components/ui/alert.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/avatar.tsx b/apps/dokploy/components/ui/avatar.tsx index 41fb42788..c0b363b16 100644 --- a/apps/dokploy/components/ui/avatar.tsx +++ b/apps/dokploy/components/ui/avatar.tsx @@ -1,7 +1,7 @@ "use client"; -import * as React from "react"; import { Avatar as AvatarPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/breadcrumb.tsx b/apps/dokploy/components/ui/breadcrumb.tsx index 5702f2018..86373c1a6 100644 --- a/apps/dokploy/components/ui/breadcrumb.tsx +++ b/apps/dokploy/components/ui/breadcrumb.tsx @@ -1,8 +1,7 @@ -import * as React from "react"; -import { Slot } from "radix-ui"; - -import { cn } from "@/lib/utils"; import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"; +import { Slot } from "radix-ui"; +import type * as React from "react"; +import { cn } from "@/lib/utils"; function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) { return ( diff --git a/apps/dokploy/components/ui/card.tsx b/apps/dokploy/components/ui/card.tsx index abaf8a242..92abd7d96 100644 --- a/apps/dokploy/components/ui/card.tsx +++ b/apps/dokploy/components/ui/card.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/chart.tsx b/apps/dokploy/components/ui/chart.tsx index 8b4449329..6f04835d3 100644 --- a/apps/dokploy/components/ui/chart.tsx +++ b/apps/dokploy/components/ui/chart.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import * as RechartsPrimitive from "recharts"; import type { TooltipValueType } from "recharts"; +import * as RechartsPrimitive from "recharts"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/checkbox.tsx b/apps/dokploy/components/ui/checkbox.tsx index 4065b8fd9..00aba0ada 100644 --- a/apps/dokploy/components/ui/checkbox.tsx +++ b/apps/dokploy/components/ui/checkbox.tsx @@ -1,10 +1,9 @@ "use client"; -import * as React from "react"; -import { Checkbox as CheckboxPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; import { CheckIcon } from "lucide-react"; +import { Checkbox as CheckboxPrimitive } from "radix-ui"; +import type * as React from "react"; +import { cn } from "@/lib/utils"; function Checkbox({ className, diff --git a/apps/dokploy/components/ui/context-menu.tsx b/apps/dokploy/components/ui/context-menu.tsx index e21ced2c0..9a97726bd 100644 --- a/apps/dokploy/components/ui/context-menu.tsx +++ b/apps/dokploy/components/ui/context-menu.tsx @@ -1,10 +1,9 @@ "use client"; -import * as React from "react"; +import { CheckIcon, ChevronRightIcon } from "lucide-react"; import { ContextMenu as ContextMenuPrimitive } from "radix-ui"; - +import type * as React from "react"; import { cn } from "@/lib/utils"; -import { ChevronRightIcon, CheckIcon } from "lucide-react"; function ContextMenu({ ...props diff --git a/apps/dokploy/components/ui/dialog.tsx b/apps/dokploy/components/ui/dialog.tsx index 7ddff98da..21ad3921f 100644 --- a/apps/dokploy/components/ui/dialog.tsx +++ b/apps/dokploy/components/ui/dialog.tsx @@ -1,10 +1,9 @@ -import * as React from "react"; +import { XIcon } from "lucide-react"; import { Dialog as DialogPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; +import type * as React from "react"; import { Button } from "@/components/ui/button"; import { wasNestedPopupJustClosed } from "@/components/ui/nested-popup-context"; -import { XIcon } from "lucide-react"; +import { cn } from "@/lib/utils"; function Dialog({ ...props diff --git a/apps/dokploy/components/ui/dropdown-menu.tsx b/apps/dokploy/components/ui/dropdown-menu.tsx index ace8ead13..bf06bb708 100644 --- a/apps/dokploy/components/ui/dropdown-menu.tsx +++ b/apps/dokploy/components/ui/dropdown-menu.tsx @@ -1,9 +1,8 @@ -import * as React from "react"; -import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; -import { markNestedPopupClosed } from "@/components/ui/nested-popup-context"; import { CheckIcon, ChevronRightIcon } from "lucide-react"; +import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; +import type * as React from "react"; +import { markNestedPopupClosed } from "@/components/ui/nested-popup-context"; +import { cn } from "@/lib/utils"; function DropdownMenu({ onOpenChange, diff --git a/apps/dokploy/components/ui/file-tree.tsx b/apps/dokploy/components/ui/file-tree.tsx index ad370dbe3..b3787ce77 100644 --- a/apps/dokploy/components/ui/file-tree.tsx +++ b/apps/dokploy/components/ui/file-tree.tsx @@ -1,9 +1,9 @@ "use client"; -import { Accordion as AccordionPrimitive } from "radix-ui"; // import { ScrollArea } from "@acme/components/ui/scroll-area"; // import { cn } from "@acme/components/lib/utils"; import { ChevronRight, type LucideIcon } from "lucide-react"; +import { Accordion as AccordionPrimitive } from "radix-ui"; import React from "react"; import useResizeObserver from "use-resize-observer"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/form.tsx b/apps/dokploy/components/ui/form.tsx index b35fe20da..51310ea53 100644 --- a/apps/dokploy/components/ui/form.tsx +++ b/apps/dokploy/components/ui/form.tsx @@ -1,4 +1,4 @@ -import { Label as LabelPrimitive, Slot } from "radix-ui"; +import { type Label as LabelPrimitive, Slot } from "radix-ui"; import * as React from "react"; import { Controller, diff --git a/apps/dokploy/components/ui/input-group.tsx b/apps/dokploy/components/ui/input-group.tsx index 99ef7f691..63f715d93 100644 --- a/apps/dokploy/components/ui/input-group.tsx +++ b/apps/dokploy/components/ui/input-group.tsx @@ -1,12 +1,11 @@ "use client"; -import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; - -import { cn } from "@/lib/utils"; +import type * as React from "react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; +import { cn } from "@/lib/utils"; function InputGroup({ className, ...props }: React.ComponentProps<"div">) { return ( diff --git a/apps/dokploy/components/ui/input-otp.tsx b/apps/dokploy/components/ui/input-otp.tsx index 23d0d62d4..d32d2a73b 100644 --- a/apps/dokploy/components/ui/input-otp.tsx +++ b/apps/dokploy/components/ui/input-otp.tsx @@ -1,8 +1,7 @@ -import * as React from "react"; import { OTPInput, OTPInputContext } from "input-otp"; - -import { cn } from "@/lib/utils"; import { MinusIcon } from "lucide-react"; +import * as React from "react"; +import { cn } from "@/lib/utils"; function InputOTP({ className, diff --git a/apps/dokploy/components/ui/label.tsx b/apps/dokploy/components/ui/label.tsx index e46815f76..b263eb73e 100644 --- a/apps/dokploy/components/ui/label.tsx +++ b/apps/dokploy/components/ui/label.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { Label as LabelPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/popover.tsx b/apps/dokploy/components/ui/popover.tsx index 82fdabfbd..05e8d2c53 100644 --- a/apps/dokploy/components/ui/popover.tsx +++ b/apps/dokploy/components/ui/popover.tsx @@ -1,10 +1,9 @@ "use client"; -import * as React from "react"; import { Popover as PopoverPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; +import type * as React from "react"; import { markNestedPopupClosed } from "@/components/ui/nested-popup-context"; +import { cn } from "@/lib/utils"; function Popover({ onOpenChange, diff --git a/apps/dokploy/components/ui/progress.tsx b/apps/dokploy/components/ui/progress.tsx index 2d3083c3a..5dc058c75 100644 --- a/apps/dokploy/components/ui/progress.tsx +++ b/apps/dokploy/components/ui/progress.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { Progress as ProgressPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/radio-group.tsx b/apps/dokploy/components/ui/radio-group.tsx index b0201f93c..caae2facc 100644 --- a/apps/dokploy/components/ui/radio-group.tsx +++ b/apps/dokploy/components/ui/radio-group.tsx @@ -1,7 +1,7 @@ "use client"; -import * as React from "react"; import { RadioGroup as RadioGroupPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/scroll-area.tsx b/apps/dokploy/components/ui/scroll-area.tsx index f11913d6c..e859fbe35 100644 --- a/apps/dokploy/components/ui/scroll-area.tsx +++ b/apps/dokploy/components/ui/scroll-area.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/select.tsx b/apps/dokploy/components/ui/select.tsx index ace7d407a..a78df1b44 100644 --- a/apps/dokploy/components/ui/select.tsx +++ b/apps/dokploy/components/ui/select.tsx @@ -1,8 +1,7 @@ -import * as React from "react"; +import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"; import { Select as SelectPrimitive } from "radix-ui"; - +import type * as React from "react"; import { cn } from "@/lib/utils"; -import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react"; function Select({ ...props diff --git a/apps/dokploy/components/ui/separator.tsx b/apps/dokploy/components/ui/separator.tsx index 44776cc0d..5680de757 100644 --- a/apps/dokploy/components/ui/separator.tsx +++ b/apps/dokploy/components/ui/separator.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { Separator as SeparatorPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/sheet.tsx b/apps/dokploy/components/ui/sheet.tsx index d858a231c..4c0c8c576 100644 --- a/apps/dokploy/components/ui/sheet.tsx +++ b/apps/dokploy/components/ui/sheet.tsx @@ -1,9 +1,8 @@ -import * as React from "react"; -import { Dialog as SheetPrimitive } from "radix-ui"; - -import { cn } from "@/lib/utils"; -import { Button } from "@/components/ui/button"; import { XIcon } from "lucide-react"; +import { Dialog as SheetPrimitive } from "radix-ui"; +import type * as React from "react"; +import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; function Sheet({ ...props }: React.ComponentProps) { return ; diff --git a/apps/dokploy/components/ui/sonner.tsx b/apps/dokploy/components/ui/sonner.tsx index 31ae45051..4aad20314 100644 --- a/apps/dokploy/components/ui/sonner.tsx +++ b/apps/dokploy/components/ui/sonner.tsx @@ -1,14 +1,14 @@ "use client"; -import { useTheme } from "next-themes"; -import { Toaster as Sonner, type ToasterProps } from "sonner"; import { CircleCheckIcon, InfoIcon, - TriangleAlertIcon, - OctagonXIcon, Loader2Icon, + OctagonXIcon, + TriangleAlertIcon, } from "lucide-react"; +import { useTheme } from "next-themes"; +import { Toaster as Sonner, type ToasterProps } from "sonner"; const Toaster = ({ ...props }: ToasterProps) => { const { theme = "system" } = useTheme(); diff --git a/apps/dokploy/components/ui/switch.tsx b/apps/dokploy/components/ui/switch.tsx index 4bbea5442..9080b035c 100644 --- a/apps/dokploy/components/ui/switch.tsx +++ b/apps/dokploy/components/ui/switch.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { Switch as SwitchPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/table.tsx b/apps/dokploy/components/ui/table.tsx index af121d57b..da95d3590 100644 --- a/apps/dokploy/components/ui/table.tsx +++ b/apps/dokploy/components/ui/table.tsx @@ -1,6 +1,6 @@ "use client"; -import * as React from "react"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/tabs.tsx b/apps/dokploy/components/ui/tabs.tsx index 759dfcd1b..6b83fea1c 100644 --- a/apps/dokploy/components/ui/tabs.tsx +++ b/apps/dokploy/components/ui/tabs.tsx @@ -1,6 +1,6 @@ -import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; import { Tabs as TabsPrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/textarea.tsx b/apps/dokploy/components/ui/textarea.tsx index 075948df8..959d789e2 100644 --- a/apps/dokploy/components/ui/textarea.tsx +++ b/apps/dokploy/components/ui/textarea.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/apps/dokploy/components/ui/toggle.tsx b/apps/dokploy/components/ui/toggle.tsx index 8e5911f54..439ffee58 100644 --- a/apps/dokploy/components/ui/toggle.tsx +++ b/apps/dokploy/components/ui/toggle.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; import { Toggle as TogglePrimitive } from "radix-ui"; +import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/packages/server/src/utils/cluster/upload.ts b/packages/server/src/utils/cluster/upload.ts index b4235c767..0968afc7b 100644 --- a/packages/server/src/utils/cluster/upload.ts +++ b/packages/server/src/utils/cluster/upload.ts @@ -1,8 +1,8 @@ import { findAllDeploymentsByApplicationId } from "@dokploy/server/services/deployment"; import { findRegistryByIdWithCredentials, - safeDockerLoginCommand, type Registry, + safeDockerLoginCommand, } from "@dokploy/server/services/registry"; import { createRollback } from "@dokploy/server/services/rollbacks"; import type { ApplicationNested } from "../builders";