chore: small fixes and optimizations
This commit is contained in:
@@ -3,7 +3,7 @@ import AutoTooltip from '@/components/auto-tooltip';
|
||||
import DropdownButtons from '@/components/drop-down-buttons';
|
||||
import { SealColumnProps } from '@/components/seal-table/types';
|
||||
import StatusTag from '@/components/status-tag';
|
||||
import { Link, useIntl } from '@umijs/max';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import dayjs from 'dayjs';
|
||||
import { useMemo } from 'react';
|
||||
import {
|
||||
@@ -35,13 +35,7 @@ const useClusterColumns = (
|
||||
dataIndex: 'name',
|
||||
span: 3,
|
||||
render: (text: string, record: ClusterListItem) => (
|
||||
<AutoTooltip ghost>
|
||||
<Link
|
||||
to={`/cluster-management/clusters/detail?id=${record.id}&provider=${record.provider}&name=${record.name}`}
|
||||
>
|
||||
{text}
|
||||
</Link>
|
||||
</AutoTooltip>
|
||||
<AutoTooltip ghost>{text}</AutoTooltip>
|
||||
)
|
||||
},
|
||||
{
|
||||
|
||||
@@ -212,7 +212,7 @@ const AccessControlForm = forwardRef((props: AccessControlFormProps, ref) => {
|
||||
id: 'models.accessControlModal.includeusers'
|
||||
})}
|
||||
</span>
|
||||
<DownOutlined />
|
||||
<DownOutlined style={{ fontSize: 12 }} />
|
||||
</span>
|
||||
</Dropdown>
|
||||
);
|
||||
|
||||
@@ -7,6 +7,10 @@ export const backendTipsList = [
|
||||
title: 'vLLM',
|
||||
tips: 'models.form.backend.vllm'
|
||||
},
|
||||
{
|
||||
title: 'SGLang',
|
||||
tips: 'models.form.backend.sglang'
|
||||
},
|
||||
{
|
||||
title: 'Ascend MindIE',
|
||||
tips: 'models.form.backend.mindie'
|
||||
|
||||
@@ -125,18 +125,18 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
||||
icon: <IconFont type="icon-basic" />,
|
||||
field: 'name'
|
||||
},
|
||||
{
|
||||
value: TABKeysMap.SCHEDULING,
|
||||
label: intl.formatMessage({ id: 'models.form.scheduling' }),
|
||||
icon: <IconFont type="icon-model" />,
|
||||
field: 'scheduleType'
|
||||
},
|
||||
{
|
||||
value: TABKeysMap.PERFORMANCE,
|
||||
label: intl.formatMessage({ id: 'models.form.performance' }),
|
||||
icon: <IconFont type="icon-speed" />,
|
||||
field: 'extended_kv_cache.enabled'
|
||||
},
|
||||
{
|
||||
value: TABKeysMap.SCHEDULING,
|
||||
label: intl.formatMessage({ id: 'models.form.scheduling' }),
|
||||
icon: <IconFont type="icon-model" />,
|
||||
field: 'scheduleType'
|
||||
},
|
||||
{
|
||||
value: TABKeysMap.ADVANCED,
|
||||
label: intl.formatMessage({ id: 'resources.form.advanced' }),
|
||||
@@ -476,18 +476,18 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
||||
accordion={false}
|
||||
onChange={handleOnCollapseChange}
|
||||
items={[
|
||||
{
|
||||
key: TABKeysMap.SCHEDULING,
|
||||
label: intl.formatMessage({ id: 'models.form.scheduling' }),
|
||||
forceRender: true,
|
||||
children: <ScheduleTypeForm></ScheduleTypeForm>
|
||||
},
|
||||
{
|
||||
key: TABKeysMap.PERFORMANCE,
|
||||
label: intl.formatMessage({ id: 'models.form.performance' }),
|
||||
forceRender: true,
|
||||
children: <Performance></Performance>
|
||||
},
|
||||
{
|
||||
key: TABKeysMap.SCHEDULING,
|
||||
label: intl.formatMessage({ id: 'models.form.scheduling' }),
|
||||
forceRender: true,
|
||||
children: <ScheduleTypeForm></ScheduleTypeForm>
|
||||
},
|
||||
{
|
||||
key: TABKeysMap.ADVANCED,
|
||||
label: intl.formatMessage({ id: 'resources.form.advanced' }),
|
||||
|
||||
Reference in New Issue
Block a user