mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 21:28:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -73,13 +73,10 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
|
|||||||
<ChartTooltipContent
|
<ChartTooltipContent
|
||||||
labelFormatter={(_, payload) => {
|
labelFormatter={(_, payload) => {
|
||||||
const time = payload?.[0]?.payload?.time;
|
const time = payload?.[0]?.payload?.time;
|
||||||
return time
|
return time ? format(new Date(time), "PPpp") : "";
|
||||||
? format(new Date(time), "PPpp")
|
|
||||||
: "";
|
|
||||||
}}
|
}}
|
||||||
formatter={(value, name) => {
|
formatter={(value, name) => {
|
||||||
const label =
|
const label = name === "readMb" ? "Read" : "Write";
|
||||||
name === "readMb" ? "Read" : "Write";
|
|
||||||
return [`${value} MB`, label];
|
return [`${value} MB`, label];
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ export const DockerCpuChart = ({ accumulativeData }: Props) => {
|
|||||||
<ChartTooltipContent
|
<ChartTooltipContent
|
||||||
labelFormatter={(_, payload) => {
|
labelFormatter={(_, payload) => {
|
||||||
const time = payload?.[0]?.payload?.time;
|
const time = payload?.[0]?.payload?.time;
|
||||||
return time
|
return time ? format(new Date(time), "PPpp") : "";
|
||||||
? format(new Date(time), "PPpp")
|
|
||||||
: "";
|
|
||||||
}}
|
}}
|
||||||
formatter={(value) => [`${value}%`, "CPU Usage"]}
|
formatter={(value) => [`${value}%`, "CPU Usage"]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -80,13 +80,10 @@ export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
|
|||||||
<ChartTooltipContent
|
<ChartTooltipContent
|
||||||
labelFormatter={(_, payload) => {
|
labelFormatter={(_, payload) => {
|
||||||
const time = payload?.[0]?.payload?.time;
|
const time = payload?.[0]?.payload?.time;
|
||||||
return time
|
return time ? format(new Date(time), "PPpp") : "";
|
||||||
? format(new Date(time), "PPpp")
|
|
||||||
: "";
|
|
||||||
}}
|
}}
|
||||||
formatter={(value, name) => {
|
formatter={(value, name) => {
|
||||||
const label =
|
const label = name === "usedGb" ? "Used" : "Free";
|
||||||
name === "usedGb" ? "Used" : "Free";
|
|
||||||
return [`${value} GB`, label];
|
return [`${value} GB`, label];
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
+2
-1
@@ -124,7 +124,8 @@ export const DockerDiskUsageChart = () => {
|
|||||||
if (!item) return [formatSize(value as number), name];
|
if (!item) return [formatSize(value as number), name];
|
||||||
return [
|
return [
|
||||||
`${item.size} — ${item.active} active / ${item.totalCount} total — Reclaimable: ${item.reclaimable}`,
|
`${item.size} — ${item.active} active / ${item.totalCount} total — Reclaimable: ${item.reclaimable}`,
|
||||||
chartConfig[name as keyof typeof chartConfig]?.label ?? name,
|
chartConfig[name as keyof typeof chartConfig]?.label ??
|
||||||
|
name,
|
||||||
];
|
];
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -67,9 +67,7 @@ export const DockerMemoryChart = ({
|
|||||||
<ChartTooltipContent
|
<ChartTooltipContent
|
||||||
labelFormatter={(_, payload) => {
|
labelFormatter={(_, payload) => {
|
||||||
const time = payload?.[0]?.payload?.time;
|
const time = payload?.[0]?.payload?.time;
|
||||||
return time
|
return time ? format(new Date(time), "PPpp") : "";
|
||||||
? format(new Date(time), "PPpp")
|
|
||||||
: "";
|
|
||||||
}}
|
}}
|
||||||
formatter={(value) => [`${value} GB`, "Memory"]}
|
formatter={(value) => [`${value} GB`, "Memory"]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
+2
-8
@@ -41,11 +41,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
|
|||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="fillNetIn" x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id="fillNetIn" x1="0" y1="0" x2="0" y2="1">
|
||||||
<stop
|
<stop offset="5%" stopColor="var(--color-inMB)" stopOpacity={0.8} />
|
||||||
offset="5%"
|
|
||||||
stopColor="var(--color-inMB)"
|
|
||||||
stopOpacity={0.8}
|
|
||||||
/>
|
|
||||||
<stop
|
<stop
|
||||||
offset="95%"
|
offset="95%"
|
||||||
stopColor="var(--color-inMB)"
|
stopColor="var(--color-inMB)"
|
||||||
@@ -73,9 +69,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
|
|||||||
<ChartTooltipContent
|
<ChartTooltipContent
|
||||||
labelFormatter={(_, payload) => {
|
labelFormatter={(_, payload) => {
|
||||||
const time = payload?.[0]?.payload?.time;
|
const time = payload?.[0]?.payload?.time;
|
||||||
return time
|
return time ? format(new Date(time), "PPpp") : "";
|
||||||
? format(new Date(time), "PPpp")
|
|
||||||
: "";
|
|
||||||
}}
|
}}
|
||||||
formatter={(value, name) => {
|
formatter={(value, name) => {
|
||||||
const label = name === "inMB" ? "In" : "Out";
|
const label = name === "inMB" ? "In" : "Out";
|
||||||
|
|||||||
Reference in New Issue
Block a user