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