perf(charts): import chart components from @gpustack/core-ui/charts

Switch all echarts-based chart imports to the dedicated core-ui charts
entry so echarts stays out of the synchronous entry bundle and loads
only on chart routes. Requires @gpustack/core-ui with the ./charts export.
This commit is contained in:
jialin
2026-07-01 20:54:26 +08:00
committed by jialin
parent 0a1f875590
commit 5321973ebe
11 changed files with 15 additions and 16 deletions
@@ -1,4 +1,4 @@
import { HBarChart } from '@gpustack/core-ui';
import { HBarChart } from '@gpustack/core-ui/charts';
import { useIntl } from '@umijs/max';
import { usageChartHeight, usageRankMaxItems } from '../../config';
import type useTopTokenUsageByUser from '../../hooks/use-top-token-usage-by-user';