Skip to content

Commit

Permalink
Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa authored and diocas committed Nov 17, 2021
1 parent 47fd10f commit 099a88c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 40 deletions.
85 changes: 46 additions & 39 deletions packages/web-app-files/src/fileTypeIconMappings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7z": "package-x-generic",
"accdb": "file",
"accdb": "file_fill",
"ai": "image",
"apk": "package-x-generic",
"bash": "text-code",
Expand All @@ -15,16 +15,17 @@
"cdr": "image",
"cpp": "text-code",
"css": "text-code",
"csv": "x-office-spreadsheet",
"csv": "x-office-spreadsheet_fill",
"cvbdl": "text",
"c": "text-code",
"c++": "text-code",
"deb": "package-x-generic",
"doc": "x-office-document",
"docm": "x-office-document",
"docx": "x-office-document",
"dot": "x-office-document",
"dotx": "x-office-document",
"doc": "docx_fill",
"docm": "docx_fill",
"docx": "docx_fill",
"dot": "docx_fill",
"dotx": "docx_fill",
"drawio": "drawio_fill",
"eml": "text",
"eot": "image",
"epub": "text",
Expand All @@ -36,64 +37,70 @@
"hpp": "text-code",
"html": "text-code",
"htm": "text-code",
"ifc": "file_fill",
"ipynb": "jupyter_fill",
"java": "text-code",
"js": "text-code",
"json": "text-code",
"jpeg": "image",
"jpg": "image",
"lwp": "x-office-document",
"mdb": "file",
"odp": "x-office-presentation",
"ods": "x-office-spreadsheet",
"odt": "x-office-document",
"one": "x-office-document",
"jpi": "jupyter_fill",
"lwp": "x-office-document_fill",
"md": "x-office-document_fill",
"mdb": "x-office-document_fill",
"odp": "x-office-presentation_fill",
"ods": "x-office-spreadsheet_fill",
"odt": "x-office-document_fill",
"one": "x-office-document_fill",
"otf": "image",
"pdf": "application-pdf",
"pdf": "pdf_fill",
"pfb": "image",
"php": "text-code",
"pl": "text-code",
"png": "image",
"pot": "x-office-presentation",
"potm": "x-office-presentation",
"potx": "x-office-presentation",
"ppa": "x-office-presentation",
"ppam": "x-office-presentation",
"pps": "x-office-presentation",
"ppsm": "x-office-presentation",
"ppsx": "x-office-presentation",
"ppt": "x-office-presentation",
"pptm": "x-office-presentation",
"pptx": "x-office-presentation",
"pot": "pptx_fill",
"potm": "pptx_fill",
"potx": "pptx_fill",
"ppa": "pptx_fill",
"ppam": "pptx_fill",
"pps": "pptx_fill",
"ppsm": "pptx_fill",
"ppsx": "pptx_fill",
"ppt": "pptx_fill",
"pptm": "pptx_fill",
"pptx": "pptx_fill",
"ps": "image",
"psd": "image",
"py": "text-code",
"rar": "package-x-generic",
"rss": "file",
"root": "root_fill",
"rss": "file_fill",
"sh-lib": "text-code",
"sh": "text-code",
"swf": "file",
"swf": "file_fill",
"tar": "package-x-generic",
"tar.bz2": "package-x-generic",
"tar.gz": "package-x-generic",
"tbz2": "package-x-generic",
"tex": "text",
"tgz": "package-x-generic",
"ttf": "image",
"vsd": "x-office-document",
"txt": "x-office-document_fill",
"vsd": "x-office-document_fill",
"woff": "image",
"wpd": "x-office-document",
"wpd": "x-office-document_fill",
"xcf": "image",
"xla": "x-office-spreadsheet",
"xlam": "x-office-spreadsheet",
"xls": "x-office-spreadsheet",
"xlsb": "x-office-spreadsheet",
"xlsm": "x-office-spreadsheet",
"xlsx": "x-office-spreadsheet",
"xlt": "x-office-spreadsheet",
"xltm": "x-office-spreadsheet",
"xltx": "x-office-spreadsheet",
"xla": "x-office-spreadsheet_fill",
"xlam": "x-office-spreadsheet_fill",
"xls": "xlsx_fill",
"xlsb": "xlsx_fill",
"xlsm": "xlsx_fill",
"xlsx": "xlsx_fill",
"xlt": "xlsx_fill",
"xltm": "xlsx_fill",
"xltx": "xlsx_fill",
"xml": "text-code",
"yaml": "text-code",
"yml": "text-code",
"zip": "package-x-generic"
}
}
2 changes: 1 addition & 1 deletion packages/web-app-files/src/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function getFileIcon(extension) {
return icon
}

return 'file'
return 'file_fill'
}

function _getFileExtension(name) {
Expand Down

0 comments on commit 099a88c

Please sign in to comment.