Skip to content

Commit 9aea241

Browse files
authored
Merge pull request #2199 from Marukome0743/lint
refactor: lint and sort import on dokploy application
2 parents a9ee6c2 + 9ab937f commit 9aea241

File tree

14 files changed

+30
-32
lines changed

14 files changed

+30
-32
lines changed

apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DateTooltip } from "@/components/shared/date-tooltip";
2+
import { DialogAction } from "@/components/shared/dialog-action";
23
import { StatusTooltip } from "@/components/shared/status-tooltip";
34
import { Badge } from "@/components/ui/badge";
45
import { Button } from "@/components/ui/button";
@@ -10,14 +11,13 @@ import {
1011
CardTitle,
1112
} from "@/components/ui/card";
1213
import { type RouterOutputs, api } from "@/utils/api";
13-
import { Clock, Loader2, RocketIcon, Settings, RefreshCcw } from "lucide-react";
14+
import { Clock, Loader2, RefreshCcw, RocketIcon, Settings } from "lucide-react";
1415
import React, { useEffect, useState } from "react";
16+
import { toast } from "sonner";
17+
import { ShowRollbackSettings } from "../rollbacks/show-rollback-settings";
1518
import { CancelQueues } from "./cancel-queues";
1619
import { RefreshToken } from "./refresh-token";
1720
import { ShowDeployment } from "./show-deployment";
18-
import { ShowRollbackSettings } from "../rollbacks/show-rollback-settings";
19-
import { DialogAction } from "@/components/shared/dialog-action";
20-
import { toast } from "sonner";
2121

2222
interface Props {
2323
id: string;

apps/dokploy/components/dashboard/application/volume-backups/restore-volume-backups.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { AlertBlock } from "@/components/shared/alert-block";
12
import { DrawerLogs } from "@/components/shared/drawer-logs";
23
import { Badge } from "@/components/ui/badge";
34
import { Button } from "@/components/ui/button";
@@ -42,9 +43,8 @@ import { useState } from "react";
4243
import { useForm } from "react-hook-form";
4344
import { toast } from "sonner";
4445
import { z } from "zod";
45-
import { type LogLine, parseLogs } from "../../docker/logs/utils";
4646
import { formatBytes } from "../../database/backups/restore-backup";
47-
import { AlertBlock } from "@/components/shared/alert-block";
47+
import { type LogLine, parseLogs } from "../../docker/logs/utils";
4848

4949
interface Props {
5050
id: string;

apps/dokploy/components/dashboard/application/volume-backups/show-volume-backups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import {
2323
Trash2,
2424
} from "lucide-react";
2525
import { toast } from "sonner";
26-
import { HandleVolumeBackups } from "./handle-volume-backups";
2726
import { ShowDeploymentsModal } from "../deployments/show-deployments-modal";
27+
import { HandleVolumeBackups } from "./handle-volume-backups";
2828
import { RestoreVolumeBackups } from "./restore-volume-backups";
2929

3030
interface Props {

apps/dokploy/components/dashboard/compose/general/generic/show.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { UnauthorizedGitProvider } from "@/components/dashboard/application/general/generic/unauthorized-git-provider";
12
import {
23
BitbucketIcon,
34
GitIcon,
@@ -11,15 +12,14 @@ import { api } from "@/utils/api";
1112
import { CodeIcon, GitBranch, Loader2 } from "lucide-react";
1213
import Link from "next/link";
1314
import { useState } from "react";
15+
import { toast } from "sonner";
1416
import { ComposeFileEditor } from "../compose-file-editor";
1517
import { ShowConvertedCompose } from "../show-converted-compose";
1618
import { SaveBitbucketProviderCompose } from "./save-bitbucket-provider-compose";
1719
import { SaveGitProviderCompose } from "./save-git-provider-compose";
1820
import { SaveGiteaProviderCompose } from "./save-gitea-provider-compose";
1921
import { SaveGithubProviderCompose } from "./save-github-provider-compose";
2022
import { SaveGitlabProviderCompose } from "./save-gitlab-provider-compose";
21-
import { UnauthorizedGitProvider } from "@/components/dashboard/application/general/generic/unauthorized-git-provider";
22-
import { toast } from "sonner";
2323

2424
type TabState = "github" | "git" | "raw" | "gitlab" | "bitbucket" | "gitea";
2525
interface Props {

apps/dokploy/pages/api/deploy/github.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { myQueue } from "@/server/queues/queueSetup";
55
import { deploy } from "@/server/utils/deploy";
66
import {
77
IS_CLOUD,
8+
checkUserRepositoryPermissions,
89
createPreviewDeployment,
10+
createSecurityBlockedComment,
11+
findGithubById,
912
findPreviewDeploymentByApplicationId,
1013
findPreviewDeploymentsByPullRequestId,
1114
removePreviewDeployment,
1215
shouldDeploy,
13-
findGithubById,
14-
checkUserRepositoryPermissions,
15-
createSecurityBlockedComment,
1616
} from "@dokploy/server";
1717
import { Webhooks } from "@octokit/webhooks";
1818
import { and, eq } from "drizzle-orm";

apps/dokploy/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
TooltipProvider,
3838
TooltipTrigger,
3939
} from "@/components/ui/tooltip";
40-
import { cn } from "@/lib/utils";
4140
import { appRouter } from "@/server/api/root";
4241
import { api } from "@/utils/api";
4342
import { validateRequest } from "@dokploy/server/lib/auth";

apps/dokploy/pages/dashboard/project/[projectId]/services/compose/[composeId].tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
TooltipProvider,
3434
TooltipTrigger,
3535
} from "@/components/ui/tooltip";
36-
import { cn } from "@/lib/utils";
3736
import { appRouter } from "@/server/api/root";
3837
import { api } from "@/utils/api";
3938
import { validateRequest } from "@dokploy/server/lib/auth";

apps/dokploy/server/api/root.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import { projectRouter } from "./routers/project";
2828
import { redirectsRouter } from "./routers/redirects";
2929
import { redisRouter } from "./routers/redis";
3030
import { registryRouter } from "./routers/registry";
31+
import { rollbackRouter } from "./routers/rollbacks";
32+
import { scheduleRouter } from "./routers/schedule";
3133
import { securityRouter } from "./routers/security";
3234
import { serverRouter } from "./routers/server";
3335
import { settingsRouter } from "./routers/settings";
3436
import { sshRouter } from "./routers/ssh-key";
3537
import { stripeRouter } from "./routers/stripe";
3638
import { swarmRouter } from "./routers/swarm";
3739
import { userRouter } from "./routers/user";
38-
import { scheduleRouter } from "./routers/schedule";
39-
import { rollbackRouter } from "./routers/rollbacks";
4040
import { volumeBackupsRouter } from "./routers/volume-backups";
4141
/**
4242
* This is the primary router for your server.

apps/dokploy/server/api/routers/deployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import {
2020
} from "@dokploy/server";
2121
import { TRPCError } from "@trpc/server";
2222
import { desc, eq } from "drizzle-orm";
23-
import { createTRPCRouter, protectedProcedure } from "../trpc";
2423
import { z } from "zod";
24+
import { createTRPCRouter, protectedProcedure } from "../trpc";
2525

2626
export const deploymentRouter = createTRPCRouter({
2727
all: protectedProcedure

apps/dokploy/server/api/routers/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
getServiceContainersByAppName,
99
getStackContainersByAppName,
1010
} from "@dokploy/server";
11+
import { TRPCError } from "@trpc/server";
1112
import { z } from "zod";
1213
import { createTRPCRouter, protectedProcedure } from "../trpc";
13-
import { TRPCError } from "@trpc/server";
1414

1515
export const containerIdRegex = /^[a-zA-Z0-9.\-_]+$/;
1616

0 commit comments

Comments
 (0)