Atualiza portal e admin com bloqueio de máquinas desativadas

This commit is contained in:
Esdras Renan 2025-10-18 00:02:15 -03:00
parent e5085962e9
commit 630110bf3a
31 changed files with 1756 additions and 244 deletions

View file

@ -86,12 +86,12 @@ export function ChartOpenedResolved() {
</CardHeader>
<CardContent className="px-2 pt-4 sm:px-6 sm:pt-6">
{data.series.length === 0 ? (
<div className="flex h-[250px] items-center justify-center rounded-xl border border-dashed border-border/60 text-sm text-muted-foreground">
<div className="flex h-[320px] items-center justify-center rounded-xl border border-dashed border-border/60 text-sm text-muted-foreground">
Sem dados suficientes no período selecionado.
</div>
) : (
<ChartContainer config={chartConfig} className="aspect-auto h-[250px] w-full">
<LineChart data={data.series} margin={{ left: 12, right: 12 }}>
<ChartContainer config={chartConfig} className="aspect-auto h-[320px] w-full">
<LineChart data={data.series} margin={{ top: 20, left: 16, right: 16, bottom: 12 }}>
<CartesianGrid vertical={false} />
<XAxis
dataKey="date"
@ -104,8 +104,8 @@ export function ChartOpenedResolved() {
cursor={false}
content={<ChartTooltipContent indicator="line" />}
/>
<Line dataKey="opened" type="natural" stroke="var(--color-opened)" strokeWidth={2} dot={false} />
<Line dataKey="resolved" type="natural" stroke="var(--color-resolved)" strokeWidth={2} dot={false} />
<Line dataKey="opened" type="monotone" stroke="var(--color-opened)" strokeWidth={2} dot={{ r: 2 }} strokeLinecap="round" />
<Line dataKey="resolved" type="monotone" stroke="var(--color-resolved)" strokeWidth={2} dot={{ r: 2 }} strokeLinecap="round" />
</LineChart>
</ChartContainer>
)}