feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import { Button, Skeleton, Tooltip } from '@douyinfe/semi-ui';
|
||||
import { Button, Skeleton, Tooltip } from '@/components/ui';
|
||||
import { useActualTheme } from '../../context/Theme';
|
||||
import { VChart } from '@visactor/react-vchart';
|
||||
import { Activity, AlertTriangle, Info, PieChart } from 'lucide-react';
|
||||
@@ -125,7 +125,7 @@ export const QualityMetaNotice = ({ meta, scope, t }) => {
|
||||
export const QualityErrorState = ({ error, onRetry, t }) => (
|
||||
<div className='quality-card'>
|
||||
<div className='quality-empty flex flex-col items-center gap-3'>
|
||||
<AlertTriangle size={22} className='text-[var(--semi-color-danger)]' />
|
||||
<AlertTriangle size={22} className='text-[var(--ui-color-danger)]' />
|
||||
<div>{qualityErrorText(t, error)}</div>
|
||||
{onRetry && (
|
||||
<Button size='small' onClick={onRetry}>
|
||||
@@ -328,7 +328,7 @@ export const QualityTrendChart = ({ trend, loading, onZoom, t }) => {
|
||||
{ id: 'line', values: line },
|
||||
],
|
||||
// 第 7 个颜色给成功率折线,图例色块与线色一致
|
||||
color: [...colors, readCssVar('--semi-color-success', '#3bb346')],
|
||||
color: [...colors, readCssVar('--ui-color-success', '#3bb346')],
|
||||
series: [
|
||||
{
|
||||
type: 'bar',
|
||||
@@ -348,13 +348,13 @@ export const QualityTrendChart = ({ trend, loading, onZoom, t }) => {
|
||||
seriesField: 'series',
|
||||
line: {
|
||||
style: {
|
||||
stroke: readCssVar('--semi-color-success', '#3bb346'),
|
||||
stroke: readCssVar('--ui-color-success', '#3bb346'),
|
||||
lineWidth: 2,
|
||||
},
|
||||
},
|
||||
point: {
|
||||
style: {
|
||||
fill: readCssVar('--semi-color-success', '#3bb346'),
|
||||
fill: readCssVar('--ui-color-success', '#3bb346'),
|
||||
size: 4,
|
||||
},
|
||||
},
|
||||
@@ -445,11 +445,11 @@ export const QualityFaultChart = ({
|
||||
const isOrg = scope === 'org';
|
||||
// 颜色按责任方固定,不随"哪些类别为 0 被过滤掉"而错位
|
||||
const faultColor = {
|
||||
upstream: ['--semi-color-danger', '#f93920'],
|
||||
platform: ['--semi-color-warning', '#fc8800'],
|
||||
client: ['--semi-color-primary', '#0064fa'],
|
||||
quota: ['--semi-color-secondary', '#8b5cf6'],
|
||||
abort: ['--semi-color-tertiary', '#6b7075'],
|
||||
upstream: ['--ui-color-danger', '#f93920'],
|
||||
platform: ['--ui-color-warning', '#fc8800'],
|
||||
client: ['--ui-color-primary', '#0064fa'],
|
||||
quota: ['--ui-color-secondary', '#8b5cf6'],
|
||||
abort: ['--ui-color-tertiary', '#6b7075'],
|
||||
};
|
||||
const data = FAULTS.filter((f) => !(isOrg && f.value === 2))
|
||||
.map((f) => ({
|
||||
|
||||
Reference in New Issue
Block a user