feat(admin): Control Center redesign, Explore dual-view и полный RU/EN i18n
CI / test (push) Failing after 3m9s
CI / push-image (push) Has been skipped
CI / ci-done (push) Failing after 0s

Refs EventHub/EventHubFrontAdmin#32
This commit is contained in:
2026-07-14 17:58:33 +03:00
parent de379e28bf
commit fd2c1f10ad
95 changed files with 12699 additions and 4410 deletions
+11 -8
View File
@@ -1,5 +1,5 @@
import React from 'react';
import { Card, Col } from 'antd';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { DayCount } from '../types/api';
import AreaTrendChart from './AreaTrendChart';
@@ -7,10 +7,10 @@ interface Props {
title: string;
data?: DayCount[];
color: string;
lg?: number;
className?: string;
}
const DailyLineChartCard: React.FC<Props> = ({ title, data, color, lg = 12 }) => {
const DailyLineChartCard: React.FC<Props> = ({ title, data, color, className }) => {
const chartData = (data ?? []).map((item) => ({
date: item.date,
count: item.count,
@@ -21,17 +21,20 @@ const DailyLineChartCard: React.FC<Props> = ({ title, data, color, lg = 12 }) =>
}
return (
<Col xs={24} lg={lg}>
<Card title={title}>
<Card className={className}>
<CardHeader>
<CardTitle className="text-base">{title}</CardTitle>
</CardHeader>
<CardContent>
<AreaTrendChart
data={chartData}
xKey="date"
series={[{ key: 'count', color, name: title }]}
height={300}
height={280}
yAllowDecimals={false}
/>
</Card>
</Col>
</CardContent>
</Card>
);
};