Created
May 19, 2017 10:24
-
-
Save tonimoeckel/0e31f39272ff0068b21631ec1eaebbd7 to your computer and use it in GitHub Desktop.
Map application types to FontAwesome icon classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const applicationTypeIconMap = { | |
| 'image' : 'fa-file-image-o', | |
| 'audio' : 'fa-file-audio-o', | |
| 'video' : 'fa-file-video-o', | |
| // Documents | |
| 'application/pdf' : 'fa-file-pdf-o', | |
| 'application/msword' : 'fa-file-word-o', | |
| 'application/vnd.ms-word' : 'fa-file-word-o', | |
| 'application/vnd.oasis.opendocument.text' : 'fa-file-word-o', | |
| 'application/vnd.openxmlformats-officedocument.wordprocessingml' : 'fa-file-word-o', | |
| 'application/vnd.ms-excel' : 'fa-file-excel-o', | |
| 'application/vnd.openxmlformats-officedocument.spreadsheetml' : 'fa-file-excel-o', | |
| 'application/vnd.oasis.opendocument.spreadsheet' : 'fa-file-excel-o', | |
| 'application/vnd.ms-powerpoint' : 'fa-file-powerpoint-o', | |
| 'application/vnd.openxmlformats-officedocument.presentationml' : 'fa-file-powerpoint-o', | |
| 'application/vnd.oasis.opendocument.presentation' : 'fa-file-powerpoint-o', | |
| 'text/plain' : 'fa-file-text-o', | |
| 'text/html' : 'fa-file-code-o', | |
| 'application/json' : 'fa-file-code-o', | |
| // Archives | |
| 'application/gzip' : 'fa-file-archive-o', | |
| 'application/zip' : 'fa-file-archive-o', | |
| } | |
| export default applicationTypeIconMap; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment