Skip to content

Commit 1730f42

Browse files
[autofix.ci] apply automated fixes
1 parent 28845c1 commit 1730f42

6 files changed

Lines changed: 10 additions & 25 deletions

File tree

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,10 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
7373
<ChartTooltipContent
7474
labelFormatter={(_, payload) => {
7575
const time = payload?.[0]?.payload?.time;
76-
return time
77-
? format(new Date(time), "PPpp")
78-
: "";
76+
return time ? format(new Date(time), "PPpp") : "";
7977
}}
8078
formatter={(value, name) => {
81-
const label =
82-
name === "readMb" ? "Read" : "Write";
79+
const label = name === "readMb" ? "Read" : "Write";
8380
return [`${value} MB`, label];
8481
}}
8582
/>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ export const DockerCpuChart = ({ accumulativeData }: Props) => {
6161
<ChartTooltipContent
6262
labelFormatter={(_, payload) => {
6363
const time = payload?.[0]?.payload?.time;
64-
return time
65-
? format(new Date(time), "PPpp")
66-
: "";
64+
return time ? format(new Date(time), "PPpp") : "";
6765
}}
6866
formatter={(value) => [`${value}%`, "CPU Usage"]}
6967
/>

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,10 @@ export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
8080
<ChartTooltipContent
8181
labelFormatter={(_, payload) => {
8282
const time = payload?.[0]?.payload?.time;
83-
return time
84-
? format(new Date(time), "PPpp")
85-
: "";
83+
return time ? format(new Date(time), "PPpp") : "";
8684
}}
8785
formatter={(value, name) => {
88-
const label =
89-
name === "usedGb" ? "Used" : "Free";
86+
const label = name === "usedGb" ? "Used" : "Free";
9087
return [`${value} GB`, label];
9188
}}
9289
/>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export const DockerDiskUsageChart = () => {
124124
if (!item) return [formatSize(value as number), name];
125125
return [
126126
`${item.size}${item.active} active / ${item.totalCount} total — Reclaimable: ${item.reclaimable}`,
127-
chartConfig[name as keyof typeof chartConfig]?.label ?? name,
127+
chartConfig[name as keyof typeof chartConfig]?.label ??
128+
name,
128129
];
129130
}}
130131
/>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ export const DockerMemoryChart = ({
6767
<ChartTooltipContent
6868
labelFormatter={(_, payload) => {
6969
const time = payload?.[0]?.payload?.time;
70-
return time
71-
? format(new Date(time), "PPpp")
72-
: "";
70+
return time ? format(new Date(time), "PPpp") : "";
7371
}}
7472
formatter={(value) => [`${value} GB`, "Memory"]}
7573
/>

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
4141
>
4242
<defs>
4343
<linearGradient id="fillNetIn" x1="0" y1="0" x2="0" y2="1">
44-
<stop
45-
offset="5%"
46-
stopColor="var(--color-inMB)"
47-
stopOpacity={0.8}
48-
/>
44+
<stop offset="5%" stopColor="var(--color-inMB)" stopOpacity={0.8} />
4945
<stop
5046
offset="95%"
5147
stopColor="var(--color-inMB)"
@@ -73,9 +69,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
7369
<ChartTooltipContent
7470
labelFormatter={(_, payload) => {
7571
const time = payload?.[0]?.payload?.time;
76-
return time
77-
? format(new Date(time), "PPpp")
78-
: "";
72+
return time ? format(new Date(time), "PPpp") : "";
7973
}}
8074
formatter={(value, name) => {
8175
const label = name === "inMB" ? "In" : "Out";

0 commit comments

Comments
 (0)