refactor: user table list

This commit is contained in:
jialin
2025-10-13 19:55:08 +08:00
parent d3f39ae06b
commit 2c9f5062a9
10 changed files with 254 additions and 285 deletions
@@ -12,7 +12,6 @@ import useDownloadStream from '@/hooks/use-download-stream';
import { ListItem as WorkerListItem } from '@/pages/resources/config/types';
import { convertFileSize } from '@/utils';
import {
CodeOutlined,
DeleteOutlined,
DownloadOutlined,
HddFilled,
@@ -273,12 +272,12 @@ const childActionList = [
],
icon: <IconFont type="icon-logs" />
},
{
label: 'Terminal',
locale: false,
key: 'terminal',
icon: <CodeOutlined />
},
// {
// label: 'Terminal',
// locale: false,
// key: 'terminal',
// icon: <CodeOutlined />
// },
{
label: 'common.button.downloadLog',
key: 'download',
@@ -23,6 +23,7 @@ import SearchResult from './search-result';
const filterOptions = [
{ label: 'AWQ', value: 'awq' },
{ label: 'GPTQ', value: 'gptq' }
// { label: 'GGUF', value: 'gguf' }
];
const PaginationMain = styled(Pagination)`
.ant-pagination-slash {
@@ -532,13 +533,9 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
<BaseSelect
value={dataSource.sortType}
onChange={handleSortChange}
labelRender={({ label }) => {
return (
<span>
{intl.formatMessage({ id: 'model.deploy.sort' })}: {label}
</span>
);
}}
prefix={
<span>{intl.formatMessage({ id: 'model.deploy.sort' })}:</span>
}
options={modelFilesSortOptions}
size="middle"
style={{ width: '150px' }}
@@ -549,7 +546,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
onChange={handleFilterChange}
options={filterOptions}
size="middle"
placeholder="quantization type"
placeholder={intl.formatMessage({ id: 'common.input.type' })}
style={{ width: 150 }}
></BaseSelect>
</span>