style: playround params collapse
This commit is contained in:
@@ -11,7 +11,7 @@ import { Col, Row, Space, Tooltip } from 'antd';
|
||||
import dayjs from 'dayjs';
|
||||
import _ from 'lodash';
|
||||
import React from 'react';
|
||||
import { InstanceStatusMap, status } from '../config';
|
||||
import { InstanceStatusMap, InstanceStatusMapValue, status } from '../config';
|
||||
import { ModelInstanceListItem } from '../config/types';
|
||||
|
||||
interface InstanceItemProps {
|
||||
@@ -23,11 +23,6 @@ interface InstanceItemProps {
|
||||
) => void;
|
||||
}
|
||||
|
||||
const testStatus = {
|
||||
state: InstanceStatusMap.Downloading,
|
||||
text: 'Downloading'
|
||||
};
|
||||
|
||||
const InstanceItem: React.FC<InstanceItemProps> = ({
|
||||
list,
|
||||
handleChildSelect
|
||||
@@ -112,7 +107,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
|
||||
}
|
||||
statusValue={{
|
||||
status: status[item.state] as any,
|
||||
text: item.state,
|
||||
text: InstanceStatusMapValue[item.state],
|
||||
message: item.state_message
|
||||
}}
|
||||
></StatusTag>
|
||||
|
||||
@@ -22,14 +22,25 @@ export const modelSourceMap: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const InstanceStatusMap = {
|
||||
Initializing: 'Initializing',
|
||||
Pending: 'Pending',
|
||||
Running: 'Running',
|
||||
Scheduled: 'Scheduled',
|
||||
Error: 'Error',
|
||||
Downloading: 'Downloading',
|
||||
Unknown: 'Unknown',
|
||||
Analyzing: 'Analyzing'
|
||||
Initializing: 'initializing',
|
||||
Pending: 'pending',
|
||||
Running: 'running',
|
||||
Scheduled: 'scheduled',
|
||||
Error: 'error',
|
||||
Downloading: 'downloading',
|
||||
Unknown: 'unknown',
|
||||
Analyzing: 'analyzing'
|
||||
};
|
||||
|
||||
export const InstanceStatusMapValue = {
|
||||
[InstanceStatusMap.Initializing]: 'Initializing',
|
||||
[InstanceStatusMap.Pending]: 'Pending',
|
||||
[InstanceStatusMap.Running]: 'Running',
|
||||
[InstanceStatusMap.Scheduled]: 'Scheduled',
|
||||
[InstanceStatusMap.Error]: 'Error',
|
||||
[InstanceStatusMap.Downloading]: 'Downloading',
|
||||
[InstanceStatusMap.Unknown]: 'Unknown',
|
||||
[InstanceStatusMap.Analyzing]: 'Analyzing'
|
||||
};
|
||||
|
||||
export const status: any = {
|
||||
|
||||
Reference in New Issue
Block a user