@@ -116,7 +116,7 @@ const InstanceItem: React.FC
= ({
return {
worker_name: data?.name,
worker_ip: data?.ip,
- port: data?.port,
+ port: '',
gpu_index: item.gpu_index
};
});
@@ -125,7 +125,7 @@ const InstanceItem: React.FC = ({
{
worker_name: `${row.worker_name}`,
worker_ip: `${row.worker_ip}`,
- port: row.port,
+ port: '',
gpu_index: `${row.gpu_indexes?.sort?.()} (main)`
}
];
diff --git a/src/pages/resources/components/gpus.tsx b/src/pages/resources/components/gpus.tsx
index e1df1b50..4fd44bbf 100644
--- a/src/pages/resources/components/gpus.tsx
+++ b/src/pages/resources/components/gpus.tsx
@@ -128,6 +128,13 @@ const GPUList: React.FC = () => {
title={intl.formatMessage({ id: 'common.table.name' })}
dataIndex="name"
key="name"
+ render={(text, record) => {
+ return (
+
+ {text}
+
+ );
+ }}
/>
{
title={intl.formatMessage({ id: 'common.table.name' })}
dataIndex="username"
key="name"
+ ellipsis={{
+ showTitle: false
+ }}
+ render={(text, record) => {
+ return (
+
+ {text}
+
+ );
+ }}
/>
{
return record.is_admin ? (
- <>
+
{intl.formatMessage({ id: 'users.form.admin' })}
- >
+
) : (
- <>
+
{intl.formatMessage({ id: 'users.form.user' })}
- >
+
);
}}
/>
@@ -302,6 +316,16 @@ const Users: React.FC = () => {
title={intl.formatMessage({ id: 'users.form.fullname' })}
dataIndex="full_name"
key="full_name"
+ ellipsis={{
+ showTitle: false
+ }}
+ render={(text, record) => {
+ return (
+
+ {text}
+
+ );
+ }}
/>
{
sortOrder={sortOrder}
showSorterTooltip={false}
sorter={false}
+ ellipsis={{
+ showTitle: false
+ }}
render={(text, record) => {
- return dayjs(text).format('YYYY-MM-DD HH:mm:ss');
+ return (
+
+ {dayjs(text).format('YYYY-MM-DD HH:mm:ss')}
+
+ );
}}
/>
{
return (