mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
change file icon type
This commit is contained in:
@@ -53,9 +53,11 @@ export const Utils = {
|
||||
FILEEXT_ICON_MAP: {
|
||||
|
||||
// text file
|
||||
'md': 'txt.png',
|
||||
'txt': 'txt.png',
|
||||
|
||||
// markdown file
|
||||
'md': 'md.png',
|
||||
|
||||
// pdf file
|
||||
'pdf': 'pdf.png',
|
||||
|
||||
@@ -103,11 +105,17 @@ export const Utils = {
|
||||
'gif': 'pic.png',
|
||||
'bmp': 'pic.png',
|
||||
'ico': 'pic.png',
|
||||
'psd': 'psd.png',
|
||||
|
||||
// style file
|
||||
'css': 'css.png',
|
||||
|
||||
// sdoc file
|
||||
'sdoc': 'sdoc.png',
|
||||
'sdoc_notification': 'sdoc_notification.ico',
|
||||
|
||||
// default
|
||||
'default': 'file.png',
|
||||
'sdoc': 'sdoc.png',
|
||||
'sdoc_notification': 'sdoc_notification.ico'
|
||||
},
|
||||
|
||||
// check if a file is an image
|
||||
|
@@ -51,9 +51,11 @@ def tsstr_day(value):
|
||||
FILEEXT_ICON_MAP = {
|
||||
|
||||
# text file
|
||||
'md': 'txt.png',
|
||||
'txt': 'txt.png',
|
||||
|
||||
# markdown file
|
||||
'md': 'md.png',
|
||||
|
||||
# pdf file
|
||||
'pdf': 'pdf.png',
|
||||
|
||||
@@ -86,7 +88,9 @@ FILEEXT_ICON_MAP = {
|
||||
'mp3': 'music.png',
|
||||
'oga': 'music.png',
|
||||
'ogg': 'music.png',
|
||||
'wav': 'music.png',
|
||||
'flac': 'music.png',
|
||||
'opus': 'music.png',
|
||||
'aac': 'music.png',
|
||||
'ac3': 'music.png',
|
||||
'wma': 'music.png',
|
||||
@@ -99,6 +103,14 @@ FILEEXT_ICON_MAP = {
|
||||
'gif': 'pic.png',
|
||||
'bmp': 'pic.png',
|
||||
'ico': 'pic.png',
|
||||
'psd': 'psd.png',
|
||||
|
||||
# style file
|
||||
'css': 'css.png',
|
||||
|
||||
# sdoc file
|
||||
'sdoc': 'sdoc.png',
|
||||
'sdoc_notification': 'sdoc_notification.ico',
|
||||
|
||||
# default
|
||||
'default': 'file.png',
|
||||
|
Reference in New Issue
Block a user