mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-02 08:00:07 +00:00
feat: 增加文件图标
This commit is contained in:
committed by
zhengkunwang223
parent
daa40d237a
commit
ccf2e77fe2
@@ -137,6 +137,16 @@ let icons = new Map([
|
||||
['.tar', 'p-file-zip'],
|
||||
['.tar.gz', 'p-file-zip'],
|
||||
['.tar.xz', 'p-file-zip'],
|
||||
['.mp3', 'p-file-mp3'],
|
||||
['.svg', 'p-file-svg'],
|
||||
['.txt', 'p-file-txt'],
|
||||
['.html', 'p-file-html'],
|
||||
['.word', 'p-file-word'],
|
||||
['.ppt', 'p-file-ppt'],
|
||||
['.jpg', 'p-file-jpg'],
|
||||
['.xlsx', 'p-file-excel'],
|
||||
['.doc', 'p-file-word'],
|
||||
['.pdf', 'p-file-pdf'],
|
||||
]);
|
||||
|
||||
export function getIcon(extention: string): string {
|
||||
|
||||
Reference in New Issue
Block a user