Skip to content

Commit 1dbc1ac

Browse files
committed
refactor: 更新 Storage 页面图标和样式
- 将 Storage 页面中本地、WebDAV 和 MinIO 的图标替换为更合适的图标组件,提升视觉一致性。 - 调整 WebDAV 和 MinIO 图标的颜色,以增强可辨识性。
1 parent 119745d commit 1dbc1ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pages/storage/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import {
44
DeleteOutlined,
55
EditOutlined,
66
LinkOutlined,
7-
FolderOutlined,
87
GlobalOutlined,
98
CloudOutlined,
109
PlusOutlined,
11-
DatabaseOutlined,
1210
CloudServerOutlined,
11+
HddOutlined,
1312
} from '@ant-design/icons';
13+
import { BsDatabase } from 'react-icons/bs';
1414

1515
import Title from '@/components/Title';
1616
import type { Oss } from '@/types/app/oss';
@@ -35,15 +35,15 @@ export default () => {
3535
const getPlatformIcon = (platform: string) => {
3636
switch (platform.toLowerCase()) {
3737
case 'local':
38-
return <FolderOutlined className="text-4xl text-yellow-500" />;
38+
return <BsDatabase className="text-4xl text-yellow-500" />;
3939
case 'webdav':
40-
return <GlobalOutlined className="text-4xl text-blue-500" />;
40+
return <GlobalOutlined className="text-4xl text-red-500" />;
4141
case 'minio':
42-
return <DatabaseOutlined className="text-4xl text-blue-600" />;
42+
return <HddOutlined className="text-4xl text-red-600" />;
4343
case 'qiniu':
4444
return <CloudServerOutlined className="text-4xl text-blue-500" />;
4545
case 'tencent':
46-
return <CloudOutlined className="text-4xl text-blue-400" />;
46+
return <CloudOutlined className="text-4xl text-blue-700" />;
4747
case 'aliyun':
4848
return <CloudOutlined className="text-4xl text-orange-500" />;
4949
default:

0 commit comments

Comments
 (0)