diff --git a/apps/dokploy/components/dashboard/application/domains/generate-domain.tsx b/apps/dokploy/components/dashboard/application/domains/generate-domain.tsx deleted file mode 100644 index 9ebe8e30..00000000 --- a/apps/dokploy/components/dashboard/application/domains/generate-domain.tsx +++ /dev/null @@ -1,79 +0,0 @@ -import { Button } from "@/components/ui/button"; -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, - DialogTrigger, -} from "@/components/ui/dialog"; -import { api } from "@/utils/api"; -import { RefreshCcw } from "lucide-react"; -import Link from "next/link"; -import { GenerateTraefikMe } from "./generate-traefikme"; -import { GenerateWildCard } from "./generate-wildcard"; - -interface Props { - applicationId: string; -} - -export const GenerateDomain = ({ applicationId }: Props) => { - return ( - - - - - - - Generate Domain - - Generate Domains for your applications - - - -
-
    -
  • -
    -
    - 1. Generate TraefikMe Domain -
    -
    - This option generates a free domain provided by{" "} - - TraefikMe - - . We recommend using this for quick domain testing or if you - don't have a domain yet. -
    -
    -
  • - {/*
  • -
    -
    - 2. Use Wildcard Domain -
    -
    - To use this option, you need to set up an 'A' record in your - domain provider. For example, create a record for - *.yourdomain.com. -
    -
    -
  • */} -
-
- - {/* */} -
-
-
-
- ); -}; diff --git a/apps/dokploy/components/dashboard/application/domains/generate-traefikme.tsx b/apps/dokploy/components/dashboard/application/domains/generate-traefikme.tsx deleted file mode 100644 index 3085b3a8..00000000 --- a/apps/dokploy/components/dashboard/application/domains/generate-traefikme.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, - AlertDialogTrigger, -} from "@/components/ui/alert-dialog"; -import { Button } from "@/components/ui/button"; -import { api } from "@/utils/api"; -import { RefreshCcw } from "lucide-react"; -import React from "react"; -import { toast } from "sonner"; - -interface Props { - applicationId: string; -} -export const GenerateTraefikMe = ({ applicationId }: Props) => { - const { mutateAsync, isLoading } = api.domain.generateDomain.useMutation(); - const utils = api.useUtils(); - return ( - - - - - - - - Are you sure to generate a new domain? - - - This will generate a new domain and will be used to access to the - application - - - - Cancel - { - await mutateAsync({ - applicationId, - }) - .then((data) => { - utils.domain.byApplicationId.invalidate({ - applicationId: applicationId, - }); - utils.application.readTraefikConfig.invalidate({ - applicationId: applicationId, - }); - toast.success("Generated Domain succesfully"); - }) - .catch(() => { - toast.error("Error to generate Domain"); - }); - }} - > - Confirm - - - - - ); -}; diff --git a/apps/dokploy/components/dashboard/application/domains/show-domains.tsx b/apps/dokploy/components/dashboard/application/domains/show-domains.tsx index d7724ce7..46c05f15 100644 --- a/apps/dokploy/components/dashboard/application/domains/show-domains.tsx +++ b/apps/dokploy/components/dashboard/application/domains/show-domains.tsx @@ -12,7 +12,6 @@ import { ExternalLink, GlobeIcon, PenBoxIcon } from "lucide-react"; import Link from "next/link"; import { AddDomain } from "./add-domain"; import { DeleteDomain } from "./delete-domain"; -import { GenerateDomain } from "./generate-domain"; interface Props { applicationId: string; @@ -46,9 +45,6 @@ export const ShowDomains = ({ applicationId }: Props) => { )} - {data && data?.length > 0 && ( - - )} @@ -65,8 +61,6 @@ export const ShowDomains = ({ applicationId }: Props) => { Add Domain - - ) : (