mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-09 21:45:17 +00:00
Merge pull request #5019 from Dokploy/fix/chart-animation-4414
fix: disable recharts animation on monitoring charts
This commit is contained in:
@@ -85,6 +85,7 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="readMb"
|
dataKey="readMb"
|
||||||
stroke="var(--color-readMb)"
|
stroke="var(--color-readMb)"
|
||||||
fill="url(#fillBlockRead)"
|
fill="url(#fillBlockRead)"
|
||||||
@@ -92,6 +93,7 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="writeMb"
|
dataKey="writeMb"
|
||||||
stroke="var(--color-writeMb)"
|
stroke="var(--color-writeMb)"
|
||||||
fill="url(#fillBlockWrite)"
|
fill="url(#fillBlockWrite)"
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export const DockerCpuChart = ({ accumulativeData }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="usage"
|
dataKey="usage"
|
||||||
stroke="var(--color-usage)"
|
stroke="var(--color-usage)"
|
||||||
fill="url(#fillCpu)"
|
fill="url(#fillCpu)"
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="usedGb"
|
dataKey="usedGb"
|
||||||
stroke="var(--color-usedGb)"
|
stroke="var(--color-usedGb)"
|
||||||
fill="url(#fillDiskUsed)"
|
fill="url(#fillDiskUsed)"
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export const DockerMemoryChart = ({
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="usage"
|
dataKey="usage"
|
||||||
stroke="var(--color-usage)"
|
stroke="var(--color-usage)"
|
||||||
fill="url(#fillMemory)"
|
fill="url(#fillMemory)"
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="inMB"
|
dataKey="inMB"
|
||||||
stroke="var(--color-inMB)"
|
stroke="var(--color-inMB)"
|
||||||
fill="url(#fillNetIn)"
|
fill="url(#fillNetIn)"
|
||||||
@@ -88,6 +89,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
dataKey="outMB"
|
dataKey="outMB"
|
||||||
stroke="var(--color-outMB)"
|
stroke="var(--color-outMB)"
|
||||||
fill="url(#fillNetOut)"
|
fill="url(#fillNetOut)"
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ export const ContainerBlockChart = ({ data }: Props) => {
|
|||||||
name="Write"
|
name="Write"
|
||||||
dataKey="write"
|
dataKey="write"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillWrite)"
|
fill="url(#fillWrite)"
|
||||||
stroke="hsl(142, 71%, 45%)"
|
stroke="hsl(142, 71%, 45%)"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
@@ -163,6 +164,7 @@ export const ContainerBlockChart = ({ data }: Props) => {
|
|||||||
name="Read"
|
name="Read"
|
||||||
dataKey="read"
|
dataKey="read"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillRead)"
|
fill="url(#fillRead)"
|
||||||
stroke="hsl(217, 91%, 60%)"
|
stroke="hsl(217, 91%, 60%)"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ export const ContainerCPUChart = ({ data }: Props) => {
|
|||||||
name="CPU"
|
name="CPU"
|
||||||
dataKey="cpu"
|
dataKey="cpu"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillCPU)"
|
fill="url(#fillCPU)"
|
||||||
stroke="hsl(var(--chart-1))"
|
stroke="hsl(var(--chart-1))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ export const ContainerMemoryChart = ({ data }: Props) => {
|
|||||||
name="Memory"
|
name="Memory"
|
||||||
dataKey="memory"
|
dataKey="memory"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillMemory)"
|
fill="url(#fillMemory)"
|
||||||
stroke="hsl(var(--chart-2))"
|
stroke="hsl(var(--chart-2))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
+2
@@ -161,6 +161,7 @@ export const ContainerNetworkChart = ({ data }: Props) => {
|
|||||||
name="Input"
|
name="Input"
|
||||||
dataKey="input"
|
dataKey="input"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillInput)"
|
fill="url(#fillInput)"
|
||||||
stroke="hsl(var(--chart-3))"
|
stroke="hsl(var(--chart-3))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
@@ -169,6 +170,7 @@ export const ContainerNetworkChart = ({ data }: Props) => {
|
|||||||
name="Output"
|
name="Output"
|
||||||
dataKey="output"
|
dataKey="output"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillOutput)"
|
fill="url(#fillOutput)"
|
||||||
stroke="hsl(var(--chart-4))"
|
stroke="hsl(var(--chart-4))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ export function CPUChart({ data }: CPUChartProps) {
|
|||||||
name="CPU"
|
name="CPU"
|
||||||
dataKey="cpu"
|
dataKey="cpu"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillCPU)"
|
fill="url(#fillCPU)"
|
||||||
stroke="hsl(var(--chart-1))"
|
stroke="hsl(var(--chart-1))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ export function MemoryChart({ data }: MemoryChartProps) {
|
|||||||
yAxisId="left"
|
yAxisId="left"
|
||||||
dataKey="memUsed"
|
dataKey="memUsed"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillMemory)"
|
fill="url(#fillMemory)"
|
||||||
stroke="hsl(var(--chart-2))"
|
stroke="hsl(var(--chart-2))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ export function NetworkChart({ data }: NetworkChartProps) {
|
|||||||
name="Network In"
|
name="Network In"
|
||||||
dataKey="networkIn"
|
dataKey="networkIn"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillNetworkIn)"
|
fill="url(#fillNetworkIn)"
|
||||||
stroke="hsl(var(--chart-3))"
|
stroke="hsl(var(--chart-3))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
@@ -128,6 +129,7 @@ export function NetworkChart({ data }: NetworkChartProps) {
|
|||||||
name="Network Out"
|
name="Network Out"
|
||||||
dataKey="networkOut"
|
dataKey="networkOut"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="url(#fillNetworkOut)"
|
fill="url(#fillNetworkOut)"
|
||||||
stroke="hsl(var(--chart-4))"
|
stroke="hsl(var(--chart-4))"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ export const RequestDistributionChart = ({
|
|||||||
<Area
|
<Area
|
||||||
dataKey="count"
|
dataKey="count"
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
isAnimationActive={false}
|
||||||
fill="hsl(var(--chart-1))"
|
fill="hsl(var(--chart-1))"
|
||||||
fillOpacity={0.4}
|
fillOpacity={0.4}
|
||||||
stroke="hsl(var(--chart-1))"
|
stroke="hsl(var(--chart-1))"
|
||||||
|
|||||||
Reference in New Issue
Block a user