Skip to content

Commit 9a1bee5

Browse files
committed
fix: more grammar and spelling mistakes
1 parent 6d17f62 commit 9a1bee5

18 files changed

Lines changed: 43 additions & 43 deletions

File tree

apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ interface Props {
4040
type: "application" | "mariadb" | "mongo" | "mysql" | "postgres" | "redis";
4141
}
4242

43-
const AddRedirectchema = z.object({
43+
const AddRedirectSchema = z.object({
4444
replicas: z.number().min(1, "Replicas must be at least 1"),
4545
registryId: z.string().optional(),
4646
});
4747

48-
type AddCommand = z.infer<typeof AddRedirectchema>;
48+
type AddCommand = z.infer<typeof AddRedirectSchema>;
4949

5050
export const ShowClusterSettings = ({ id, type }: Props) => {
5151
const queryMap = {
@@ -87,7 +87,7 @@ export const ShowClusterSettings = ({ id, type }: Props) => {
8787
: {}),
8888
replicas: data?.replicas || 1,
8989
},
90-
resolver: zodResolver(AddRedirectchema),
90+
resolver: zodResolver(AddRedirectSchema),
9191
});
9292

9393
useEffect(() => {

apps/dokploy/components/dashboard/application/advanced/redirects/handle-redirect.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ import { Separator } from "@/components/ui/separator";
3737
import { Switch } from "@/components/ui/switch";
3838
import { api } from "@/utils/api";
3939

40-
const AddRedirectchema = z.object({
40+
const AddRedirectSchema = z.object({
4141
regex: z.string().min(1, "Regex required"),
4242
permanent: z.boolean().default(false),
4343
replacement: z.string().min(1, "Replacement required"),
4444
});
4545

46-
type AddRedirect = z.infer<typeof AddRedirectchema>;
46+
type AddRedirect = z.infer<typeof AddRedirectSchema>;
4747

4848
// Default presets
4949
const redirectPresets = [
@@ -110,7 +110,7 @@ export const HandleRedirect = ({
110110
regex: "",
111111
replacement: "",
112112
},
113-
resolver: zodResolver(AddRedirectchema),
113+
resolver: zodResolver(AddRedirectSchema),
114114
});
115115

116116
useEffect(() => {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export const HandleVolumeBackups = ({
483483
</SelectContent>
484484
</Select>
485485
<FormDescription>
486-
Choose the volume to backup, if you dont see the
486+
Choose the volume to backup. If you do not see the
487487
volume here, you can type the volume name manually
488488
</FormDescription>
489489
<FormMessage />
@@ -518,7 +518,7 @@ export const HandleVolumeBackups = ({
518518
</SelectContent>
519519
</Select>
520520
<FormDescription>
521-
Choose the volume to backup, if you dont see the volume
521+
Choose the volume to backup. If you do not see the volume
522522
here, you can type the volume name manually
523523
</FormDescription>
524524
<FormMessage />

apps/dokploy/components/dashboard/monitoring/free/container/docker-block-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {
1111
import type { DockerStatsJSON } from "./show-free-container-monitoring";
1212

1313
interface Props {
14-
acummulativeData: DockerStatsJSON["block"];
14+
accumulativeData: DockerStatsJSON["block"];
1515
}
1616

17-
export const DockerBlockChart = ({ acummulativeData }: Props) => {
18-
const transformedData = acummulativeData.map((item, index) => {
17+
export const DockerBlockChart = ({ accumulativeData }: Props) => {
18+
const transformedData = accumulativeData.map((item, index) => {
1919
return {
2020
time: item.time,
2121
name: `Point ${index + 1}`,

apps/dokploy/components/dashboard/monitoring/free/container/docker-cpu-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {
1111
import type { DockerStatsJSON } from "./show-free-container-monitoring";
1212

1313
interface Props {
14-
acummulativeData: DockerStatsJSON["cpu"];
14+
accumulativeData: DockerStatsJSON["cpu"];
1515
}
1616

17-
export const DockerCpuChart = ({ acummulativeData }: Props) => {
18-
const transformedData = acummulativeData.map((item, index) => {
17+
export const DockerCpuChart = ({ accumulativeData }: Props) => {
18+
const transformedData = accumulativeData.map((item, index) => {
1919
return {
2020
name: `Point ${index + 1}`,
2121
time: item.time,

apps/dokploy/components/dashboard/monitoring/free/container/docker-disk-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
import type { DockerStatsJSON } from "./show-free-container-monitoring";
1212

1313
interface Props {
14-
acummulativeData: DockerStatsJSON["disk"];
14+
accumulativeData: DockerStatsJSON["disk"];
1515
diskTotal: number;
1616
}
1717

18-
export const DockerDiskChart = ({ acummulativeData, diskTotal }: Props) => {
19-
const transformedData = acummulativeData.map((item, index) => {
18+
export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
19+
const transformedData = accumulativeData.map((item, index) => {
2020
return {
2121
time: item.time,
2222
name: `Point ${index + 1}`,

apps/dokploy/components/dashboard/monitoring/free/container/docker-memory-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import type { DockerStatsJSON } from "./show-free-container-monitoring";
1212
import { convertMemoryToBytes } from "./show-free-container-monitoring";
1313

1414
interface Props {
15-
acummulativeData: DockerStatsJSON["memory"];
15+
accumulativeData: DockerStatsJSON["memory"];
1616
memoryLimitGB: number;
1717
}
1818

1919
export const DockerMemoryChart = ({
20-
acummulativeData,
20+
accumulativeData,
2121
memoryLimitGB,
2222
}: Props) => {
23-
const transformedData = acummulativeData.map((item, index) => {
23+
const transformedData = accumulativeData.map((item, index) => {
2424
return {
2525
time: item.time,
2626
name: `Point ${index + 1}`,

apps/dokploy/components/dashboard/monitoring/free/container/docker-network-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import {
1111
import type { DockerStatsJSON } from "./show-free-container-monitoring";
1212

1313
interface Props {
14-
acummulativeData: DockerStatsJSON["network"];
14+
accumulativeData: DockerStatsJSON["network"];
1515
}
1616

17-
export const DockerNetworkChart = ({ acummulativeData }: Props) => {
18-
const transformedData = acummulativeData.map((item, index) => {
17+
export const DockerNetworkChart = ({ accumulativeData }: Props) => {
18+
const transformedData = accumulativeData.map((item, index) => {
1919
return {
2020
time: item.time,
2121
name: `Point ${index + 1}`,

apps/dokploy/components/dashboard/monitoring/free/container/show-free-container-monitoring.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const ContainerFreeMonitoring = ({
124124
refetchOnWindowFocus: false,
125125
},
126126
);
127-
const [acummulativeData, setAcummulativeData] = useState<DockerStatsJSON>({
127+
const [accumulativeData, setAccumulativeData] = useState<DockerStatsJSON>({
128128
cpu: [],
129129
memory: [],
130130
block: [],
@@ -136,7 +136,7 @@ export const ContainerFreeMonitoring = ({
136136
useEffect(() => {
137137
setCurrentData(defaultData);
138138

139-
setAcummulativeData({
139+
setAccumulativeData({
140140
cpu: [],
141141
memory: [],
142142
block: [],
@@ -155,7 +155,7 @@ export const ContainerFreeMonitoring = ({
155155
network: data.network[data.network.length - 1] ?? currentData.network,
156156
disk: data.disk[data.disk.length - 1] ?? currentData.disk,
157157
});
158-
setAcummulativeData({
158+
setAccumulativeData({
159159
block: data?.block || [],
160160
cpu: data?.cpu || [],
161161
disk: data?.disk || [],
@@ -184,7 +184,7 @@ export const ContainerFreeMonitoring = ({
184184
setCurrentData(data);
185185

186186
const MAX_DATA_POINTS = 300;
187-
setAcummulativeData((prevData) => ({
187+
setAccumulativeData((prevData) => ({
188188
cpu: [...prevData.cpu, data.cpu].slice(-MAX_DATA_POINTS),
189189
memory: [...prevData.memory, data.memory].slice(-MAX_DATA_POINTS),
190190
block: [...prevData.block, data.block].slice(-MAX_DATA_POINTS),
@@ -228,7 +228,7 @@ export const ContainerFreeMonitoring = ({
228228
)}
229229
className="w-[100%]"
230230
/>
231-
<DockerCpuChart acummulativeData={acummulativeData.cpu} />
231+
<DockerCpuChart accumulativeData={accumulativeData.cpu} />
232232
</div>
233233
</CardContent>
234234
</Card>
@@ -252,7 +252,7 @@ export const ContainerFreeMonitoring = ({
252252
className="w-[100%]"
253253
/>
254254
<DockerMemoryChart
255-
acummulativeData={acummulativeData.memory}
255+
accumulativeData={accumulativeData.memory}
256256
memoryLimitGB={
257257
// @ts-ignore
258258
convertMemoryToBytes(currentData.memory.value.total) /
@@ -277,7 +277,7 @@ export const ContainerFreeMonitoring = ({
277277
className="w-[100%]"
278278
/>
279279
<DockerDiskChart
280-
acummulativeData={acummulativeData.disk}
280+
accumulativeData={accumulativeData.disk}
281281
diskTotal={currentData.disk.value.diskTotal}
282282
/>
283283
</div>
@@ -294,7 +294,7 @@ export const ContainerFreeMonitoring = ({
294294
<span className="text-sm text-muted-foreground">
295295
{`Read: ${currentData.block.value.readMb} / Write: ${currentData.block.value.writeMb} `}
296296
</span>
297-
<DockerBlockChart acummulativeData={acummulativeData.block} />
297+
<DockerBlockChart accumulativeData={accumulativeData.block} />
298298
</div>
299299
</CardContent>
300300
</Card>
@@ -307,7 +307,7 @@ export const ContainerFreeMonitoring = ({
307307
<span className="text-sm text-muted-foreground">
308308
{`In MB: ${currentData.network.value.inputMb} / Out MB: ${currentData.network.value.outputMb} `}
309309
</span>
310-
<DockerNetworkChart acummulativeData={acummulativeData.network} />
310+
<DockerNetworkChart accumulativeData={accumulativeData.network} />
311311
</div>
312312
</CardContent>
313313
</Card>

apps/dokploy/components/dashboard/settings/git/gitlab/add-gitlab-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export const AddGitlabProvider = () => {
283283
</FormLabel>
284284
<FormControl>
285285
<Input
286-
placeholder="For organization/group access use the slugish name of the group eg: my-org"
286+
placeholder="For organization/group access use the sluggish name of the group eg: my-org"
287287
{...field}
288288
/>
289289
</FormControl>

0 commit comments

Comments
 (0)