From 3d49383c4213758081cd4d87f2f74161948d8018 Mon Sep 17 00:00:00 2001
From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
Date: Sat, 17 Aug 2024 17:03:20 -0600
Subject: [PATCH] remove
---
.../application/domains/generate-wildcard.tsx | 69 -------------------
.../compose/domains/generate-wildcard.tsx | 69 -------------------
2 files changed, 138 deletions(-)
delete mode 100644 apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx
delete mode 100644 apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx
diff --git a/apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx b/apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx
deleted file mode 100644
index da444552..00000000
--- a/apps/dokploy/components/dashboard/application/domains/generate-wildcard.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 { SquareAsterisk } from "lucide-react";
-import React from "react";
-import { toast } from "sonner";
-
-interface Props {
- applicationId: string;
-}
-export const GenerateWildCard = ({ applicationId }: Props) => {
- const { mutateAsync, isLoading } = api.domain.generateWildcard.useMutation();
- const utils = api.useUtils();
- return (
-
-
-
-
-
-
-
- Are you sure to generate a new wildcard 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((e) => {
- toast.error(`Error to generate Domain: ${e.message}`);
- });
- }}
- >
- Confirm
-
-
-
-
- );
-};
diff --git a/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx b/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx
deleted file mode 100644
index da444552..00000000
--- a/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.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 { SquareAsterisk } from "lucide-react";
-import React from "react";
-import { toast } from "sonner";
-
-interface Props {
- applicationId: string;
-}
-export const GenerateWildCard = ({ applicationId }: Props) => {
- const { mutateAsync, isLoading } = api.domain.generateWildcard.useMutation();
- const utils = api.useUtils();
- return (
-
-
-
-
-
-
-
- Are you sure to generate a new wildcard 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((e) => {
- toast.error(`Error to generate Domain: ${e.message}`);
- });
- }}
- >
- Confirm
-
-
-
-
- );
-};