Merge pull request #29 from Mahoo12138/dev

add file icon for ebook files
This commit is contained in:
Spencer Woo
2021-07-24 15:49:07 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -25,6 +25,7 @@ import {
faFileDownload,
faCopy,
faUndo,
faBook,
} from '@fortawesome/free-solid-svg-icons'
import { faGithub, faMarkdown } from '@fortawesome/free-brands-svg-icons'
@@ -53,7 +54,8 @@ library.add(
faPlus,
faMinus,
faDownload,
faUndo
faUndo,
faBook
)
function MyApp({ Component, pageProps }: AppProps) {
+5
View File
@@ -13,6 +13,7 @@ const icons: { [key: string]: [IconPrefix, IconName] } = {
text: ['far', 'file-alt'],
file: ['far', 'file'],
markdown: ['fab', 'markdown'],
book: ['fas', 'book'],
}
const extensions = {
@@ -67,6 +68,10 @@ const extensions = {
txt: icons.text,
rtf: icons.text,
md: icons.markdown,
epub: icons.book,
mobi: icons.book,
azw3: icons.book,
}
/**