feat: benchmark list

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 8b282afb03
commit 37b814b70a
29 changed files with 1034 additions and 19 deletions
+29
View File
@@ -0,0 +1,29 @@
import { StatusMaps } from '@/config';
import { StatusType } from '@/config/types';
export const BenchmarkStatusValueMap = {
Pending: 'pending',
Claimed: 'claimed',
Running: 'running',
Completed: 'completed',
Error: 'error',
Unreachable: 'unreachable'
};
export const BenchmarkStatusLabelMap = {
[BenchmarkStatusValueMap.Pending]: 'Pending',
[BenchmarkStatusValueMap.Claimed]: 'Claimed',
[BenchmarkStatusValueMap.Running]: 'Running',
[BenchmarkStatusValueMap.Completed]: 'Completed',
[BenchmarkStatusValueMap.Error]: 'Error',
[BenchmarkStatusValueMap.Unreachable]: 'Unreachable'
};
export const BenchmarkStatus: Record<string, StatusType> = {
[BenchmarkStatusValueMap.Pending]: StatusMaps.transitioning,
[BenchmarkStatusValueMap.Claimed]: StatusMaps.warning,
[BenchmarkStatusValueMap.Running]: StatusMaps.success,
[BenchmarkStatusValueMap.Completed]: StatusMaps.success,
[BenchmarkStatusValueMap.Error]: StatusMaps.error,
[BenchmarkStatusValueMap.Unreachable]: StatusMaps.error
};