mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 16:35:26 +02:00
Spelling and grammar corrections
This commit is contained in:
@@ -70,7 +70,7 @@ export const AddProject = () => {
|
||||
router.push(`/dashboard/project/${data.projectId}`);
|
||||
})
|
||||
.catch(() => {
|
||||
toast.error("Error to create a project");
|
||||
toast.error("Error creating a project");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ interface Props {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export const ProjectEnviroment = ({ projectId, children }: Props) => {
|
||||
export const ProjectEnvironment = ({ projectId, children }: Props) => {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const utils = api.useUtils();
|
||||
const { mutateAsync, error, isError, isLoading } =
|
||||
@@ -72,11 +72,11 @@ export const ProjectEnviroment = ({ projectId, children }: Props) => {
|
||||
projectId: projectId,
|
||||
})
|
||||
.then(() => {
|
||||
toast.success("Project env updated succesfully");
|
||||
toast.success("Project env updated successfully");
|
||||
utils.project.all.invalidate();
|
||||
})
|
||||
.catch(() => {
|
||||
toast.error("Error to update the env");
|
||||
toast.error("Error updating the env");
|
||||
})
|
||||
.finally(() => {});
|
||||
};
|
||||
@@ -90,13 +90,13 @@ export const ProjectEnviroment = ({ projectId, children }: Props) => {
|
||||
onSelect={(e) => e.preventDefault()}
|
||||
>
|
||||
<FileIcon className="size-4" />
|
||||
<span>Project Enviroment</span>
|
||||
<span>Project Environment</span>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
</DialogTrigger>
|
||||
<DialogContent className="max-h-screen overflow-y-auto sm:max-w-6xl">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Project Enviroment</DialogTitle>
|
||||
<DialogTitle>Project Environment</DialogTitle>
|
||||
<DialogDescription>
|
||||
Update the env Environment variables that are accessible to all
|
||||
services of this project. Use this syntax to reference project-level
|
||||
@@ -120,7 +120,7 @@ export const ProjectEnviroment = ({ projectId, children }: Props) => {
|
||||
name="env"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Enviroment variables</FormLabel>
|
||||
<FormLabel>Environment variables</FormLabel>
|
||||
<FormControl>
|
||||
<CodeEditor
|
||||
lineWrapping
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
import Link from "next/link";
|
||||
import { Fragment } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { ProjectEnviroment } from "./project-enviroment";
|
||||
import { ProjectEnvironment } from "./project-environment";
|
||||
import { UpdateProject } from "./update";
|
||||
|
||||
export const ShowProjects = () => {
|
||||
@@ -195,7 +195,7 @@ export const ShowProjects = () => {
|
||||
Actions
|
||||
</DropdownMenuLabel>
|
||||
<div onClick={(e) => e.stopPropagation()}>
|
||||
<ProjectEnviroment
|
||||
<ProjectEnvironment
|
||||
projectId={project.projectId}
|
||||
/>
|
||||
</div>
|
||||
@@ -247,12 +247,12 @@ export const ShowProjects = () => {
|
||||
})
|
||||
.then(() => {
|
||||
toast.success(
|
||||
"Project delete succesfully",
|
||||
"Project deleted successfully",
|
||||
);
|
||||
})
|
||||
.catch(() => {
|
||||
toast.error(
|
||||
"Error to delete this project",
|
||||
"Error deleting this project",
|
||||
);
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -76,12 +76,12 @@ export const UpdateProject = ({ projectId }: Props) => {
|
||||
description: formData.description || "",
|
||||
})
|
||||
.then(() => {
|
||||
toast.success("Project updated succesfully");
|
||||
toast.success("Project updated successfully");
|
||||
utils.project.all.invalidate();
|
||||
setIsOpen(false);
|
||||
})
|
||||
.catch(() => {
|
||||
toast.error("Error to update the project");
|
||||
toast.error("Error updating the Project");
|
||||
})
|
||||
.finally(() => {});
|
||||
};
|
||||
@@ -136,7 +136,7 @@ export const UpdateProject = ({ projectId }: Props) => {
|
||||
<FormLabel>Description</FormLabel>
|
||||
<FormControl>
|
||||
<Textarea
|
||||
placeholder="Description about your project..."
|
||||
placeholder="Description of your project..."
|
||||
className="resize-none"
|
||||
{...field}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user