v3.5.8和v3.5.9版本更新
CI / verify (pull_request) Waiting to run

This commit is contained in:
2026-08-25 09:20:32 +08:00
parent 7304c7a8e1
commit 5935024ea8
101 changed files with 7640 additions and 5364 deletions
+10 -4
View File
@@ -12,6 +12,8 @@ import {
fmtTime,
} from '../lib/constants';
import OssUpload from '../components/OssUpload';
import { useAdminListColumns } from '../lib/useAdminListColumns';
type Row = {
id: string;
@@ -58,7 +60,7 @@ export default function ResourcesPage() {
void reload();
}, []);
const columns: ColumnsType<Row> = [
const baseColumns: ColumnsType<Row> = [
{ title: 'ID', dataIndex: 'id', width: 80 },
{
title: '归属',
@@ -84,8 +86,8 @@ export default function ResourcesPage() {
</a>
),
},
{ title: 'URL', dataIndex: 'url', ellipsis: true },
{ title: 'OSS Key', dataIndex: 'ossKey', ellipsis: true, width: 160 },
{ title: 'URL', dataIndex: 'url' },
{ title: 'OSS Key', dataIndex: 'ossKey', width: 160 },
{ title: '排序', dataIndex: 'sortOrder', width: 60 },
{
title: '状态',
@@ -114,12 +116,16 @@ export default function ResourcesPage() {
},
];
const { columns, settingsButton, settingsModal } = useAdminListColumns('resources', baseColumns, { page, pageSize });
return (
<div>
{settingsModal}
<Space style={{ marginBottom: 16, width: '100%', justifyContent: 'space-between' }}>
<Typography.Title level={4} style={{ margin: 0 }}>
OSS
</Typography.Title>
{settingsButton}
<Button type="primary" onClick={() => setCreateOpen(true)}>
</Button>
@@ -170,7 +176,7 @@ export default function ResourcesPage() {
loading={loading}
columns={columns}
dataSource={data?.items ?? []}
scroll={{ x: 1200 }}
scroll={{ x: 'max-content' }}
pagination={{
current: page,
pageSize,