mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
add file icon for ebook files
This commit is contained in:
+3
-1
@@ -25,6 +25,7 @@ import {
|
|||||||
faFileDownload,
|
faFileDownload,
|
||||||
faCopy,
|
faCopy,
|
||||||
faUndo,
|
faUndo,
|
||||||
|
faBook,
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
import { faGithub, faMarkdown } from '@fortawesome/free-brands-svg-icons'
|
import { faGithub, faMarkdown } from '@fortawesome/free-brands-svg-icons'
|
||||||
|
|
||||||
@@ -53,7 +54,8 @@ library.add(
|
|||||||
faPlus,
|
faPlus,
|
||||||
faMinus,
|
faMinus,
|
||||||
faDownload,
|
faDownload,
|
||||||
faUndo
|
faUndo,
|
||||||
|
faBook
|
||||||
)
|
)
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const icons: { [key: string]: [IconPrefix, IconName] } = {
|
|||||||
text: ['far', 'file-alt'],
|
text: ['far', 'file-alt'],
|
||||||
file: ['far', 'file'],
|
file: ['far', 'file'],
|
||||||
markdown: ['fab', 'markdown'],
|
markdown: ['fab', 'markdown'],
|
||||||
|
book: ['fas', 'book'],
|
||||||
}
|
}
|
||||||
|
|
||||||
const extensions = {
|
const extensions = {
|
||||||
@@ -67,6 +68,10 @@ const extensions = {
|
|||||||
txt: icons.text,
|
txt: icons.text,
|
||||||
rtf: icons.text,
|
rtf: icons.text,
|
||||||
md: icons.markdown,
|
md: icons.markdown,
|
||||||
|
|
||||||
|
epub: icons.book,
|
||||||
|
mobi: icons.book,
|
||||||
|
azw3: icons.book,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user