chore: replace components with core-ui, upgrade eslint

This commit is contained in:
jialin
2026-04-24 14:28:30 +08:00
committed by jialin
parent d48aa99dcc
commit 8711c27b78
470 changed files with 1017 additions and 24093 deletions
+9 -9
View File
@@ -1,6 +1,6 @@
import SealInput from '@/components/seal-form/seal-input';
import { PageAction } from '@/config';
import useAppUtils from '@/hooks/use-app-utils';
import { Input as CInput } from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import { Form } from 'antd';
import React from 'react';
@@ -44,22 +44,22 @@ const HuggingFaceForm: React.FC = () => {
}
]}
>
<SealInput.Input
<CInput.Input
label={intl.formatMessage({ id: 'models.form.repoid' })}
required
disabled={action === PageAction.CREATE}
onBlur={handleOnBlur}
></SealInput.Input>
></CInput.Input>
</Form.Item>
{isGGUF && (
<Form.Item<FormData>
name="huggingface_filename"
key="huggingface_filename"
>
<SealInput.Input
<CInput.Input
label={intl.formatMessage({ id: 'models.form.filename' })}
disabled={action === PageAction.CREATE}
></SealInput.Input>
></CInput.Input>
</Form.Item>
)}
</>
@@ -75,22 +75,22 @@ const HuggingFaceForm: React.FC = () => {
}
]}
>
<SealInput.Input
<CInput.Input
required
label={intl.formatMessage({ id: 'models.form.repoid' })}
disabled={action === PageAction.CREATE}
onBlur={handleOnBlur}
></SealInput.Input>
></CInput.Input>
</Form.Item>
{isGGUF && (
<Form.Item<FormData>
name="model_scope_file_path"
key="model_scope_file_path"
>
<SealInput.Input
<CInput.Input
label={intl.formatMessage({ id: 'models.form.filename' })}
disabled={action === PageAction.CREATE}
></SealInput.Input>
></CInput.Input>
</Form.Item>
)}
</>