feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Card, Tag, Timeline, Empty } from '@douyinfe/semi-ui';
|
||||
import { Card, Tag, Timeline, Empty } from '@/components/ui';
|
||||
import { Bell } from 'lucide-react';
|
||||
import { marked } from 'marked';
|
||||
import {
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Card, Avatar, Tag, Divider, Empty } from '@douyinfe/semi-ui';
|
||||
import { Card, Avatar, Tag, Divider, Empty } from '@/components/ui';
|
||||
import { Server, Gauge, ExternalLink } from 'lucide-react';
|
||||
import {
|
||||
IllustrationConstruction,
|
||||
@@ -88,7 +88,7 @@ const ApiInfoPanel = ({
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className='!text-semi-color-primary break-all cursor-pointer hover:underline mb-1'
|
||||
className='!text-ui-color-primary break-all cursor-pointer hover:underline mb-1'
|
||||
onClick={() => handleCopyUrl(api.url)}
|
||||
>
|
||||
{api.url}
|
||||
|
||||
@@ -18,6 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import { Card } from 'antd';
|
||||
import { AreaChart, Trophy } from 'lucide-react';
|
||||
import { VChart } from '@visactor/react-vchart';
|
||||
import { useIsMobile } from '../../hooks/common/useIsMobile';
|
||||
@@ -48,6 +49,7 @@ const toMobileSpec = (spec) => {
|
||||
|
||||
const next = {
|
||||
...spec,
|
||||
background: 'transparent',
|
||||
// 图内标题在手机端隐藏,信息由卡片头部承担
|
||||
title: { ...(spec.title || {}), visible: false },
|
||||
padding: { top: 4, right: 8, bottom: 4, left: 4 },
|
||||
@@ -222,7 +224,10 @@ const ChartsPanel = ({
|
||||
|
||||
const specs = useMemo(() => {
|
||||
if (!isMobile) {
|
||||
return { consume: spec_line, pie: spec_pie };
|
||||
return {
|
||||
consume: { ...spec_line, background: 'transparent' },
|
||||
pie: { ...spec_pie, background: 'transparent' },
|
||||
};
|
||||
}
|
||||
return {
|
||||
consume: toMobileSpec(
|
||||
@@ -256,82 +261,28 @@ const ChartsPanel = ({
|
||||
const chartOption = isMobile ? MOBILE_CHART_CONFIG : CHART_CONFIG;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`flex flex-col flex-1 min-h-0 ${hasApiInfoPanel ? 'lg:col-span-3' : ''}`}
|
||||
>
|
||||
<div className='grid grid-cols-1 xl:grid-cols-2 gap-4 flex-1 min-h-0'>
|
||||
{CHARTS.map((chart) => {
|
||||
const Icon = chart.icon;
|
||||
return (
|
||||
<div key={chart.key} className='relative flex flex-col min-h-0'>
|
||||
{/* 装饰渐变光晕 */}
|
||||
<div
|
||||
className={`pointer-events-none absolute -inset-1 bg-gradient-to-br ${chart.glow} rounded-3xl blur-xl opacity-60`}
|
||||
/>
|
||||
|
||||
<div
|
||||
className={`relative flex-1 flex flex-col min-h-0 bg-white dark:bg-neutral-900/90 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-neutral-800 shadow-[0_2px_12px_-2px_rgba(0,0,0,0.06)] dark:shadow-[0_2px_12px_-2px_rgba(0,0,0,0.4)] overflow-hidden`}
|
||||
>
|
||||
{/* 顶部高光条 */}
|
||||
<div
|
||||
className={`pointer-events-none absolute top-0 left-0 right-0 h-px bg-gradient-to-r ${chart.gradient} opacity-60`}
|
||||
/>
|
||||
|
||||
{/* 图表标题 + 副标题 + 类型徽章 */}
|
||||
<div className='relative flex items-center justify-between gap-3 px-4 pt-3.5 pb-2.5 shrink-0'>
|
||||
<div className='flex items-center gap-2.5 min-w-0'>
|
||||
<div
|
||||
className={`w-8 h-8 shrink-0 rounded-lg bg-gradient-to-br ${chart.gradient} flex items-center justify-center shadow-md`}
|
||||
>
|
||||
<Icon size={14} className='text-white' />
|
||||
</div>
|
||||
<div className='min-w-0'>
|
||||
<h3 className='font-semibold text-gray-900 dark:text-white text-[13px] tracking-wide leading-tight'>
|
||||
{t(chart.label)}
|
||||
</h3>
|
||||
{/* 手机端图内标题被隐藏,这里改显示「总计」,其余尺寸仍显示副标题 */}
|
||||
<p className='text-[10px] text-gray-400 dark:text-gray-500 leading-tight mt-0.5 truncate'>
|
||||
{isMobile && totals[chart.key]
|
||||
? totals[chart.key]
|
||||
: t(chart.sublabel)}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<span
|
||||
className={`shrink-0 inline-flex items-center px-2 py-0.5 rounded-md text-[10px] font-semibold border ${chart.badge}`}
|
||||
>
|
||||
{t(chart.badgeText)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 分隔线 */}
|
||||
<div className='mx-4 h-px bg-gradient-to-r from-transparent via-gray-200/60 to-transparent dark:via-gray-700/40 shrink-0' />
|
||||
|
||||
{/* 图表区域 - flex-1 撑满剩余高度,min-h 兜底防止过矮 */}
|
||||
<div className='relative flex-1 min-h-[300px] sm:min-h-[320px] p-1.5 sm:p-3 overflow-hidden'>
|
||||
{/* 网格装饰 */}
|
||||
<div
|
||||
className='pointer-events-none absolute inset-0 opacity-[0.025] dark:opacity-[0.05]'
|
||||
style={{
|
||||
backgroundImage: `
|
||||
linear-gradient(rgba(100, 100, 100, 0.5) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(100, 100, 100, 0.5) 1px, transparent 1px)
|
||||
`,
|
||||
backgroundSize: '36px 36px',
|
||||
}}
|
||||
/>
|
||||
<div className='relative h-full'>
|
||||
{/* 注意是 options 复数:react-vchart 的 notSpecKeys 里只认 'options',
|
||||
写成 option 会被当成普通 prop 丢弃(原来的 option={CHART_CONFIG}
|
||||
一直是失效的),移动端 mobile-browser 触屏 tooltip 也就一直没生效 */}
|
||||
<VChart spec={specs[chart.key]} options={chartOption} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<div className='ui-dashboard-charts'>
|
||||
{CHARTS.map((chart) => (
|
||||
<Card
|
||||
key={chart.key}
|
||||
title={
|
||||
<span className='ui-chart-title'>
|
||||
<span className='ui-chart-icon' aria-hidden='true'>
|
||||
<AreaChart size={17} />
|
||||
</span>
|
||||
{t(chart.label)}
|
||||
</span>
|
||||
}
|
||||
extra={<span className='ui-field-help'>{t(chart.badgeText)}</span>}
|
||||
>
|
||||
{isMobile && totals[chart.key] && (
|
||||
<p className='ui-field-help'>{totals[chart.key]}</p>
|
||||
)}
|
||||
<div className='ui-chart-canvas'>
|
||||
<VChart spec={specs[chart.key]} options={chartOption} />
|
||||
</div>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Button } from '@douyinfe/semi-ui';
|
||||
import { Button } from '@/components/ui';
|
||||
import { RefreshCw, Search } from 'lucide-react';
|
||||
|
||||
const DashboardHeader = ({
|
||||
|
||||
@@ -18,9 +18,9 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Card, Collapse, Empty } from '@douyinfe/semi-ui';
|
||||
import { Card, Collapse, Empty } from '@/components/ui';
|
||||
import { HelpCircle } from 'lucide-react';
|
||||
import { IconPlus, IconMinus } from '@douyinfe/semi-icons';
|
||||
import { IconPlus, IconMinus } from '@/components/ui/icons';
|
||||
import { marked } from 'marked';
|
||||
import {
|
||||
IllustrationConstruction,
|
||||
|
||||
@@ -18,251 +18,85 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Skeleton } from '@douyinfe/semi-ui';
|
||||
import { Card, Skeleton } from 'antd';
|
||||
import { VChart } from '@visactor/react-vchart';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ArrowUpRight, Wallet, TrendingUp, Zap, Clock } from 'lucide-react';
|
||||
import {
|
||||
Wallet,
|
||||
ChartColumnIncreasing,
|
||||
Activity,
|
||||
NotebookText,
|
||||
} from 'lucide-react';
|
||||
|
||||
// 卡片调色板 —— 4 张指标卡用同一蓝色家族的冷色渐进(青→天蓝→蓝→靛),
|
||||
// 贴合云平台克制专业的观感;既能区分 4 张卡,又不像四色那样"花"。
|
||||
// 卡片本体为实底白(dark 实底深灰),强调色仅用于图标 / 顶部高光条 / 角落光斑 / 角标,
|
||||
// 既不透出页面 bg-glow 背景(解决"发灰"),又靠冷蓝 accent 提供层次。
|
||||
const CARD_PALETTES = [
|
||||
{
|
||||
// 账户 / 钱包 —— 青(cyan)
|
||||
iconBg: 'from-cyan-500 to-sky-600',
|
||||
iconShadow: 'shadow-cyan-500/25',
|
||||
glow: 'from-cyan-400/25 to-sky-300/5',
|
||||
bar: 'from-cyan-400 to-sky-500',
|
||||
badge: 'bg-cyan-50 text-cyan-600 dark:bg-cyan-500/15 dark:text-cyan-400',
|
||||
},
|
||||
{
|
||||
// 使用统计 —— 天蓝(sky)
|
||||
iconBg: 'from-sky-500 to-blue-600',
|
||||
iconShadow: 'shadow-sky-500/25',
|
||||
glow: 'from-sky-400/25 to-blue-300/5',
|
||||
bar: 'from-sky-400 to-blue-500',
|
||||
badge: 'bg-sky-50 text-sky-600 dark:bg-sky-500/15 dark:text-sky-400',
|
||||
},
|
||||
{
|
||||
// Token 消耗 —— 蓝(blue)
|
||||
iconBg: 'from-blue-500 to-indigo-600',
|
||||
iconShadow: 'shadow-blue-500/25',
|
||||
glow: 'from-blue-400/25 to-indigo-300/5',
|
||||
bar: 'from-blue-400 to-indigo-500',
|
||||
badge: 'bg-blue-50 text-blue-600 dark:bg-blue-500/15 dark:text-blue-400',
|
||||
},
|
||||
{
|
||||
// 性能指标 —— 靛(indigo)
|
||||
iconBg: 'from-indigo-500 to-violet-600',
|
||||
iconShadow: 'shadow-indigo-500/25',
|
||||
glow: 'from-indigo-400/25 to-violet-300/5',
|
||||
bar: 'from-indigo-400 to-violet-500',
|
||||
badge:
|
||||
'bg-indigo-50 text-indigo-600 dark:bg-indigo-500/15 dark:text-indigo-400',
|
||||
},
|
||||
];
|
||||
|
||||
// 分组图标映射
|
||||
const GROUP_ICONS = {
|
||||
0: Wallet, // 账户数据
|
||||
1: TrendingUp, // 使用统计
|
||||
2: Zap, // Token 消耗
|
||||
3: Clock, // 性能指标
|
||||
};
|
||||
const metricIcons = [Wallet, ChartColumnIncreasing, Activity, NotebookText];
|
||||
|
||||
const StatsCards = ({
|
||||
groupedStatsData,
|
||||
loading,
|
||||
getTrendSpec,
|
||||
CARD_PROPS,
|
||||
CHART_CONFIG,
|
||||
}) => {
|
||||
const _navigate = useNavigate();
|
||||
const { t: _t } = useTranslation();
|
||||
const gridColsClass =
|
||||
groupedStatsData.length >= 4 ? 'xl:grid-cols-4' : 'xl:grid-cols-3';
|
||||
|
||||
const renderValue = (item) => (
|
||||
<Skeleton
|
||||
loading={!!loading}
|
||||
active
|
||||
paragraph={false}
|
||||
title={{ width: 80 }}
|
||||
>
|
||||
{item.value}
|
||||
</Skeleton>
|
||||
);
|
||||
return (
|
||||
<div className={`grid grid-cols-1 md:grid-cols-2 ${gridColsClass} gap-4`}>
|
||||
{groupedStatsData.map((group, idx) => {
|
||||
const palette = CARD_PALETTES[idx % CARD_PALETTES.length];
|
||||
const GroupIcon = GROUP_ICONS[idx] || Wallet;
|
||||
const isTwoColumnLayout = group.layout === 'two-column';
|
||||
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className={`group/card relative overflow-hidden rounded-2xl bg-white dark:bg-neutral-900/90 border border-gray-100 dark:border-neutral-800 shadow-[0_2px_12px_-2px_rgba(0,0,0,0.06)] dark:shadow-[0_2px_12px_-2px_rgba(0,0,0,0.4)] hover:shadow-[0_12px_28px_-6px_rgba(0,0,0,0.12)] hover:-translate-y-0.5 transition-all duration-300 ease-out`}
|
||||
>
|
||||
{/* 装饰性渐变光斑 */}
|
||||
<div
|
||||
className={`pointer-events-none absolute -top-12 -right-12 w-36 h-36 bg-gradient-to-br ${palette.glow} rounded-full blur-2xl group-hover/card:scale-110 transition-transform duration-500`}
|
||||
/>
|
||||
{/* 顶部高光条 */}
|
||||
<div
|
||||
className={`pointer-events-none absolute top-0 left-0 right-0 h-px bg-gradient-to-r ${palette.bar} opacity-60`}
|
||||
/>
|
||||
{/* 微点阵纹理 - 强化卡片质感 */}
|
||||
<div
|
||||
className='pointer-events-none absolute inset-0 opacity-[0.025] dark:opacity-[0.04]'
|
||||
style={{
|
||||
backgroundImage:
|
||||
'radial-gradient(circle, currentColor 0.5px, transparent 0.5px)',
|
||||
backgroundSize: '12px 12px',
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* 卡片头部 - 标题 + 角标编号 */}
|
||||
<div className='relative px-4 pt-3.5 pb-2.5 flex items-center justify-between'>
|
||||
<div className='flex items-center gap-2.5'>
|
||||
<div
|
||||
className={`relative w-9 h-9 rounded-xl bg-gradient-to-br ${palette.iconBg} flex items-center justify-center shadow-md ${palette.iconShadow} group-hover/card:scale-105 transition-transform duration-300`}
|
||||
>
|
||||
<GroupIcon size={16} className='text-white' />
|
||||
<div className='absolute inset-0 rounded-xl bg-gradient-to-t from-white/0 via-white/0 to-white/30' />
|
||||
</div>
|
||||
<h3 className='font-semibold text-gray-900 dark:text-white text-[13px] tracking-wide'>
|
||||
{group.title}
|
||||
</h3>
|
||||
</div>
|
||||
{/* 序号角标 - 弱化的装饰编号 */}
|
||||
<span
|
||||
className={`text-[10px] font-bold tracking-widest tabular-nums ${palette.badge} px-1.5 py-0.5 rounded-md opacity-70`}
|
||||
>
|
||||
{String(idx + 1).padStart(2, '0')}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 分隔线 - 渐变细线 */}
|
||||
<div className='mx-4 h-px bg-gradient-to-r from-transparent via-gray-200/60 to-transparent dark:via-gray-700/40' />
|
||||
|
||||
{/* 卡片内容 - 紧凑布局
|
||||
- two-column 模式:4 项 2×2 紧凑网格(Token 消耗)
|
||||
- 默认模式:2 项 左标题 + 右大数字 的两端对齐,把右侧留白用数值填满 */}
|
||||
<div
|
||||
className={`relative px-3 py-2.5 ${
|
||||
isTwoColumnLayout ? 'grid grid-cols-2 gap-2' : 'space-y-1'
|
||||
}`}
|
||||
<div className='ui-dashboard-stats'>
|
||||
<div className='ui-dashboard-metrics'>
|
||||
{groupedStatsData
|
||||
.slice(0, 2)
|
||||
.flatMap((group) => group.items)
|
||||
.map((item, index) => (
|
||||
<Card
|
||||
key={index}
|
||||
className='ui-metric'
|
||||
onClick={item.onClick}
|
||||
hoverable={!!item.onClick}
|
||||
>
|
||||
{group.items.map((item, itemIdx) => {
|
||||
// 趋势图仅在 item 显式提供 trendData 且非空时渲染
|
||||
const hasTrend =
|
||||
Array.isArray(item.trendData) && item.trendData.length > 0;
|
||||
|
||||
if (isTwoColumnLayout) {
|
||||
// ========== Token 消耗 - 紧凑卡片样式 ==========
|
||||
return (
|
||||
<div
|
||||
key={itemIdx}
|
||||
className={`group relative flex min-w-0 items-center gap-2.5 px-2 py-2 rounded-xl transition-all ${
|
||||
item.onClick ? 'cursor-pointer' : ''
|
||||
} hover:bg-white/60 dark:hover:bg-white/[0.04]`}
|
||||
onClick={item.onClick}
|
||||
>
|
||||
<div
|
||||
className='w-8 h-8 shrink-0 rounded-lg flex items-center justify-center text-[13px]'
|
||||
style={{
|
||||
backgroundColor: `var(--semi-color-${item.avatarColor}-light-default)`,
|
||||
color: `var(--semi-color-${item.avatarColor})`,
|
||||
}}
|
||||
>
|
||||
{item.icon}
|
||||
</div>
|
||||
<div className='min-w-0'>
|
||||
<div className='truncate text-[11px] text-gray-500 dark:text-gray-400 leading-tight mb-0.5'>
|
||||
{item.title}
|
||||
</div>
|
||||
<div className='truncate text-[15px] font-extrabold text-gray-900 dark:text-white leading-tight tabular-nums tracking-tight'>
|
||||
<Skeleton
|
||||
loading={loading}
|
||||
active
|
||||
placeholder={
|
||||
<Skeleton.Paragraph
|
||||
active
|
||||
rows={1}
|
||||
style={{ width: '60px', height: '18px' }}
|
||||
/>
|
||||
}
|
||||
>
|
||||
{item.value}
|
||||
</Skeleton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// ========== 账户/使用统计/性能指标 - 单列 hero 行 ==========
|
||||
// 左:小图标 + 小标题;右:大数字(吃掉之前的留白)
|
||||
return (
|
||||
<div
|
||||
key={itemIdx}
|
||||
className={`group relative flex items-center justify-between gap-3 px-2.5 py-2.5 rounded-xl transition-all ${
|
||||
item.onClick ? 'cursor-pointer' : ''
|
||||
} hover:bg-white/60 dark:hover:bg-white/[0.04]`}
|
||||
onClick={item.onClick}
|
||||
>
|
||||
{/* 左侧:图标 + 标题 */}
|
||||
<div className='flex min-w-0 items-center gap-2.5'>
|
||||
<div
|
||||
className='w-7 h-7 shrink-0 rounded-lg flex items-center justify-center text-[12px]'
|
||||
style={{
|
||||
backgroundColor: `var(--semi-color-${item.avatarColor}-light-default)`,
|
||||
color: `var(--semi-color-${item.avatarColor})`,
|
||||
}}
|
||||
>
|
||||
{item.icon}
|
||||
</div>
|
||||
<span className='truncate text-[12px] text-gray-500 dark:text-gray-400'>
|
||||
{item.title}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 右侧:大数字 + 可选趋势图(仅当显式提供) */}
|
||||
<div className='flex items-center gap-3 min-w-0'>
|
||||
{hasTrend && (
|
||||
<div className='w-14 h-6 opacity-70 group-hover:opacity-100 transition-opacity'>
|
||||
<VChart
|
||||
spec={getTrendSpec(item.trendData, item.trendColor)}
|
||||
option={CHART_CONFIG}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div className='truncate text-right text-lg font-extrabold text-gray-900 dark:text-white leading-none tabular-nums tracking-tight'>
|
||||
<Skeleton
|
||||
loading={loading}
|
||||
active
|
||||
placeholder={
|
||||
<Skeleton.Paragraph
|
||||
active
|
||||
rows={1}
|
||||
style={{ width: '80px', height: '20px' }}
|
||||
/>
|
||||
}
|
||||
>
|
||||
{item.value}
|
||||
</Skeleton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 悬停箭头 */}
|
||||
{item.onClick && (
|
||||
<ArrowUpRight
|
||||
size={12}
|
||||
className='absolute right-1.5 top-1.5 text-gray-300 dark:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity'
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<span className='ui-metric-icon' aria-hidden='true'>
|
||||
{React.createElement(metricIcons[index] || Activity, {
|
||||
size: 22,
|
||||
})}
|
||||
</span>
|
||||
<div className='min-w-0'>
|
||||
<div className='ui-metric-label'>{item.title}</div>
|
||||
<div className='ui-metric-value'>{renderValue(item)}</div>
|
||||
</div>
|
||||
{Array.isArray(item.trendData) && item.trendData.length > 0 && (
|
||||
<div className='ui-metric-trend'>
|
||||
<VChart
|
||||
spec={getTrendSpec(item.trendData, item.trendColor)}
|
||||
option={CHART_CONFIG}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
<div className='ui-dashboard-details'>
|
||||
{groupedStatsData.slice(2).map((group, index) => (
|
||||
<Card key={index} title={group.title}>
|
||||
<div className='ui-dashboard-detail-items'>
|
||||
{group.items.map((item, itemIndex) => (
|
||||
<div
|
||||
key={itemIndex}
|
||||
onClick={item.onClick}
|
||||
className={item.onClick ? 'cursor-pointer' : ''}
|
||||
>
|
||||
<div className='ui-metric-label'>{item.title}</div>
|
||||
<div className='ui-detail-value'>{renderValue(item)}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default StatsCards;
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
TabPane,
|
||||
Tag,
|
||||
Empty,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Gauge, RefreshCw } from 'lucide-react';
|
||||
import {
|
||||
IllustrationConstruction,
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useRef } from 'react';
|
||||
import { Modal, Form, Button } from '@douyinfe/semi-ui';
|
||||
import { Modal, Form, Button } from '@/components/ui';
|
||||
import { Filter, Calendar, Clock, User, Search, X } from 'lucide-react';
|
||||
|
||||
const SearchModal = ({
|
||||
@@ -138,7 +138,7 @@ const SearchModal = ({
|
||||
name='start_timestamp'
|
||||
onChange={(value) => handleInputChange(value, 'start_timestamp')}
|
||||
style={{ width: '100%' }}
|
||||
className='[&_.semi-input-wrapper]:!rounded-lg [&_.semi-input]:!text-sm'
|
||||
className='[&_.ant-input-affix-wrapper]:!rounded-lg [&_.ant-input]:!text-sm'
|
||||
/>
|
||||
</FormFieldWrapper>
|
||||
|
||||
@@ -156,7 +156,7 @@ const SearchModal = ({
|
||||
name='end_timestamp'
|
||||
onChange={(value) => handleInputChange(value, 'end_timestamp')}
|
||||
style={{ width: '100%' }}
|
||||
className='[&_.semi-input-wrapper]:!rounded-lg [&_.semi-input]:!text-sm'
|
||||
className='[&_.ant-input-affix-wrapper]:!rounded-lg [&_.ant-input]:!text-sm'
|
||||
/>
|
||||
</FormFieldWrapper>
|
||||
</div>
|
||||
@@ -186,7 +186,7 @@ const SearchModal = ({
|
||||
handleInputChange(value, 'data_export_default_time')
|
||||
}
|
||||
style={{ width: '100%' }}
|
||||
className='[&_.semi-select]:!rounded-lg'
|
||||
className='[&_.ant-select]:!rounded-lg'
|
||||
/>
|
||||
</FormFieldWrapper>
|
||||
|
||||
@@ -204,7 +204,7 @@ const SearchModal = ({
|
||||
name='username'
|
||||
onChange={(value) => handleInputChange(value, 'username')}
|
||||
style={{ width: '100%' }}
|
||||
className='[&_.semi-input-wrapper]:!rounded-lg'
|
||||
className='[&_.ant-input-affix-wrapper]:!rounded-lg'
|
||||
/>
|
||||
</FormFieldWrapper>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user