diff --git a/.gitignore b/.gitignore index bfbda236c..61e009710 100644 --- a/.gitignore +++ b/.gitignore @@ -53,4 +53,5 @@ yarn-error.log* /.data /.main -*.lockb \ No newline at end of file +*.lockb +*.rdb diff --git a/components/auth/login-2fa.tsx b/components/auth/login-2fa.tsx index 17b2d483e..6bf03d0c3 100644 --- a/components/auth/login-2fa.tsx +++ b/components/auth/login-2fa.tsx @@ -61,7 +61,7 @@ export const Login2FA = ({ authId }: Props) => { id: authId, }) .then(() => { - toast.success("Signin succesfully", { + toast.success("Signin successfully", { duration: 2000, }); diff --git a/components/dashboard/application/advanced/general/add-command.tsx b/components/dashboard/application/advanced/general/add-command.tsx index b7de2ae62..a898607d7 100644 --- a/components/dashboard/application/advanced/general/add-command.tsx +++ b/components/dashboard/application/advanced/general/add-command.tsx @@ -26,11 +26,11 @@ interface Props { applicationId: string; } -const AddRedirectchema = z.object({ +const AddRedirectSchema = z.object({ command: z.string(), }); -type AddCommand = z.infer; +type AddCommand = z.infer; export const AddCommand = ({ applicationId }: Props) => { const { data } = api.application.one.useQuery( @@ -48,7 +48,7 @@ export const AddCommand = ({ applicationId }: Props) => { defaultValues: { command: "", }, - resolver: zodResolver(AddRedirectchema), + resolver: zodResolver(AddRedirectSchema), }); useEffect(() => { diff --git a/components/dashboard/application/advanced/ports/add-port.tsx b/components/dashboard/application/advanced/ports/add-port.tsx index ceb9657cb..52b303a57 100644 --- a/components/dashboard/application/advanced/ports/add-port.tsx +++ b/components/dashboard/application/advanced/ports/add-port.tsx @@ -18,8 +18,8 @@ import { } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { api } from "@/utils/api"; +import { AlertBlock } from "@/components/shared/alert-block"; import { zodResolver } from "@hookform/resolvers/zod"; -import { AlertTriangle } from "lucide-react"; import { useEffect } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; @@ -33,7 +33,7 @@ import { } from "@/components/ui/select"; import { z } from "zod"; -const AddPortchema = z.object({ +const AddPortSchema = z.object({ publishedPort: z.number().int().min(1).max(65535), targetPort: z.number().int().min(1).max(65535), protocol: z.enum(["tcp", "udp"], { @@ -41,7 +41,7 @@ const AddPortchema = z.object({ }), }); -type AddPort = z.infer; +type AddPort = z.infer; interface Props { applicationId: string; @@ -62,7 +62,7 @@ export const AddPort = ({ publishedPort: 0, targetPort: 0, }, - resolver: zodResolver(AddPortchema), + resolver: zodResolver(AddPortSchema), }); useEffect(() => { @@ -100,14 +100,7 @@ export const AddPort = ({ Ports are used to expose your application to the internet. - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}}
{ Update Update the port - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} { Update Update the redirect - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} { Update Update the security - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} { Update traefik config Update the traefik config - {isError && ( -
- - - {error?.message} - -
- )} + {isError && {error?.message}} { Traefik config