From 0c24507872ec5ffed74dede54dc5c586f16b238a Mon Sep 17 00:00:00 2001 From: ChristoferMendes Date: Mon, 3 Nov 2025 09:44:14 -0300 Subject: [PATCH] chore: run format-and-lint:fix --- .../server/mechanizeDockerContainer.test.ts | 3 +- .../project/advanced-environment-selector.tsx | 23 +- .../components/dashboard/projects/show.tsx | 2 +- .../notifications/show-notifications.tsx | 8 +- apps/dokploy/server/api/routers/mariadb.ts | 2 +- apps/dokploy/server/api/routers/mongo.ts | 2 +- .../server/api/routers/notification.ts | 12 +- apps/dokploy/server/server.ts | 2 +- packages/server/src/db/schema/redis.ts | 1 - packages/server/src/services/notification.ts | 6 +- packages/server/src/utils/backups/mariadb.ts | 2 +- packages/server/src/utils/backups/mongo.ts | 2 +- packages/server/src/utils/backups/mysql.ts | 2 +- packages/server/src/utils/backups/postgres.ts | 2 +- .../src/utils/notifications/build-error.ts | 2 +- .../src/utils/notifications/build-success.ts | 628 +++++++++--------- .../utils/notifications/database-backup.ts | 2 +- .../src/utils/notifications/docker-cleanup.ts | 4 +- .../utils/notifications/dokploy-restart.ts | 4 +- .../server/src/utils/notifications/utils.ts | 2 +- 20 files changed, 341 insertions(+), 370 deletions(-) diff --git a/apps/dokploy/__test__/server/mechanizeDockerContainer.test.ts b/apps/dokploy/__test__/server/mechanizeDockerContainer.test.ts index 6eb5d1831..09bcbb3b1 100644 --- a/apps/dokploy/__test__/server/mechanizeDockerContainer.test.ts +++ b/apps/dokploy/__test__/server/mechanizeDockerContainer.test.ts @@ -1,7 +1,6 @@ -import { beforeEach, describe, expect, it, vi } from "vitest"; - import type { ApplicationNested } from "@dokploy/server/utils/builders"; import { mechanizeDockerContainer } from "@dokploy/server/utils/builders"; +import { beforeEach, describe, expect, it, vi } from "vitest"; type MockCreateServiceOptions = { StopGracePeriod?: number; diff --git a/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx b/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx index 172e8bbaf..a80197065 100644 --- a/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx +++ b/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx @@ -1,15 +1,8 @@ import type { findEnvironmentsByProjectId } from "@dokploy/server"; -import { - ChevronDownIcon, - PencilIcon, - PlusIcon, - Terminal, - TrashIcon, -} from "lucide-react"; +import { ChevronDownIcon, PencilIcon, PlusIcon, TrashIcon } from "lucide-react"; import { useRouter } from "next/router"; import { useState } from "react"; import { toast } from "sonner"; -import { EnvironmentVariables } from "@/components/dashboard/project/environment-variables"; import { AlertBlock } from "@/components/shared/alert-block"; import { Button } from "@/components/ui/button"; import { @@ -246,20 +239,6 @@ export const AdvancedEnvironmentSelector = ({ )} - - {/* Action buttons for non-production environments */} - {/* - - */} {environment.name !== "production" && (