2021-06-22 11:58:37 +00:00
|
|
|
import '../styles/globals.css'
|
2021-08-23 15:14:08 +00:00
|
|
|
import '../styles/prism-vsc-dark.css'
|
|
|
|
import '../styles/markdown-github.css'
|
|
|
|
|
2021-06-23 20:27:51 +00:00
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import {
|
|
|
|
faFileImage,
|
|
|
|
faFilePdf,
|
|
|
|
faFileWord,
|
|
|
|
faFilePowerpoint,
|
|
|
|
faFileExcel,
|
|
|
|
faFileAudio,
|
|
|
|
faFileVideo,
|
|
|
|
faFileArchive,
|
|
|
|
faFileCode,
|
|
|
|
faFileAlt,
|
|
|
|
faFile,
|
|
|
|
faFolder,
|
2021-08-29 16:14:17 +00:00
|
|
|
faCopy,
|
|
|
|
faArrowAltCircleDown,
|
2021-08-30 13:34:37 +00:00
|
|
|
faTrashAlt,
|
2021-08-30 14:51:19 +00:00
|
|
|
faEnvelope,
|
2022-02-04 09:22:40 +00:00
|
|
|
faFlag,
|
2021-12-30 19:44:03 +00:00
|
|
|
faCheckCircle,
|
2021-06-23 20:27:51 +00:00
|
|
|
} from '@fortawesome/free-regular-svg-icons'
|
2021-06-25 18:22:22 +00:00
|
|
|
import {
|
2022-01-16 16:08:04 +00:00
|
|
|
faSearch,
|
2022-01-08 08:47:33 +00:00
|
|
|
faCheck,
|
2021-06-25 18:22:22 +00:00
|
|
|
faPlus,
|
|
|
|
faMinus,
|
2021-08-29 16:14:17 +00:00
|
|
|
faCopy as faCopySolid,
|
2022-02-04 09:22:40 +00:00
|
|
|
faAngleRight,
|
2021-06-25 18:22:22 +00:00
|
|
|
faDownload,
|
|
|
|
faMusic,
|
|
|
|
faArrowLeft,
|
|
|
|
faArrowRight,
|
|
|
|
faFileDownload,
|
2021-06-29 20:00:05 +00:00
|
|
|
faUndo,
|
2021-07-24 08:31:46 +00:00
|
|
|
faBook,
|
2021-08-30 13:34:37 +00:00
|
|
|
faKey,
|
2021-08-30 14:51:19 +00:00
|
|
|
faSignOutAlt,
|
|
|
|
faCloud,
|
2021-09-05 15:03:27 +00:00
|
|
|
faChevronCircleDown,
|
2022-02-04 14:20:53 +00:00
|
|
|
faChevronDown,
|
2022-01-08 07:10:36 +00:00
|
|
|
faLink,
|
2021-12-30 19:44:03 +00:00
|
|
|
faExternalLinkAlt,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExclamationTriangle,
|
2022-02-04 14:20:53 +00:00
|
|
|
faTh,
|
2022-02-05 09:25:46 +00:00
|
|
|
faThLarge,
|
2022-02-04 14:20:53 +00:00
|
|
|
faThList,
|
2021-12-30 19:44:03 +00:00
|
|
|
faHome,
|
2022-02-08 15:30:12 +00:00
|
|
|
faLanguage,
|
2021-06-25 18:22:22 +00:00
|
|
|
} from '@fortawesome/free-solid-svg-icons'
|
2021-12-20 09:10:29 +00:00
|
|
|
import * as Icons from '@fortawesome/free-brands-svg-icons'
|
2021-06-23 20:27:51 +00:00
|
|
|
|
2021-06-22 11:58:37 +00:00
|
|
|
import type { AppProps } from 'next/app'
|
2021-12-18 04:59:40 +00:00
|
|
|
import NextNProgress from 'nextjs-progressbar'
|
2022-02-05 22:18:26 +00:00
|
|
|
import { appWithTranslation } from 'next-i18next'
|
2021-06-22 11:58:37 +00:00
|
|
|
|
2021-12-20 09:10:29 +00:00
|
|
|
// import all brand icons with tree-shaking so all icons can be referenced in the app
|
|
|
|
const iconList = Object.keys(Icons)
|
|
|
|
.filter(k => k !== 'fab' && k !== 'prefix')
|
|
|
|
.map(icon => Icons[icon])
|
|
|
|
|
2021-06-23 20:27:51 +00:00
|
|
|
library.add(
|
|
|
|
faFileImage,
|
|
|
|
faFilePdf,
|
|
|
|
faFileWord,
|
|
|
|
faFilePowerpoint,
|
|
|
|
faFileExcel,
|
|
|
|
faFileAudio,
|
|
|
|
faFileVideo,
|
|
|
|
faFileArchive,
|
|
|
|
faFileCode,
|
|
|
|
faFileAlt,
|
|
|
|
faFile,
|
2022-02-04 09:22:40 +00:00
|
|
|
faFlag,
|
2021-06-23 20:27:51 +00:00
|
|
|
faFolder,
|
2021-06-24 23:42:46 +00:00
|
|
|
faMusic,
|
|
|
|
faArrowLeft,
|
2021-06-25 14:15:00 +00:00
|
|
|
faArrowRight,
|
2022-02-04 09:22:40 +00:00
|
|
|
faAngleRight,
|
2021-06-25 17:47:57 +00:00
|
|
|
faFileDownload,
|
2021-06-25 18:22:22 +00:00
|
|
|
faCopy,
|
2021-08-29 16:14:17 +00:00
|
|
|
faCopySolid,
|
2021-06-25 18:22:22 +00:00
|
|
|
faPlus,
|
|
|
|
faMinus,
|
2021-06-29 20:00:05 +00:00
|
|
|
faDownload,
|
2022-01-08 07:10:36 +00:00
|
|
|
faLink,
|
2021-07-24 08:31:46 +00:00
|
|
|
faUndo,
|
2021-08-29 16:14:17 +00:00
|
|
|
faBook,
|
2021-08-30 13:34:37 +00:00
|
|
|
faArrowAltCircleDown,
|
|
|
|
faKey,
|
2021-08-30 14:51:19 +00:00
|
|
|
faTrashAlt,
|
|
|
|
faSignOutAlt,
|
|
|
|
faEnvelope,
|
2021-09-04 14:28:49 +00:00
|
|
|
faCloud,
|
2021-12-20 09:10:29 +00:00
|
|
|
faChevronCircleDown,
|
2021-12-30 19:44:03 +00:00
|
|
|
faExternalLinkAlt,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExclamationTriangle,
|
|
|
|
faHome,
|
2022-01-08 08:47:33 +00:00
|
|
|
faCheck,
|
2021-12-30 19:44:03 +00:00
|
|
|
faCheckCircle,
|
2022-01-16 16:08:04 +00:00
|
|
|
faSearch,
|
2022-02-04 14:20:53 +00:00
|
|
|
faChevronDown,
|
|
|
|
faTh,
|
2022-02-05 09:25:46 +00:00
|
|
|
faThLarge,
|
2022-02-04 14:20:53 +00:00
|
|
|
faThList,
|
2022-02-08 15:30:12 +00:00
|
|
|
faLanguage,
|
2021-12-30 19:44:03 +00:00
|
|
|
...iconList
|
2021-06-23 20:27:51 +00:00
|
|
|
)
|
|
|
|
|
2021-06-22 11:58:37 +00:00
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
2021-12-18 04:59:40 +00:00
|
|
|
return (
|
|
|
|
<>
|
2021-12-28 18:13:17 +00:00
|
|
|
<NextNProgress height={1} color="rgb(156, 163, 175, 0.9)" options={{ showSpinner: false }} />
|
2021-12-18 04:59:40 +00:00
|
|
|
<Component {...pageProps} />
|
|
|
|
</>
|
|
|
|
)
|
2021-06-22 11:58:37 +00:00
|
|
|
}
|
2022-02-05 22:18:26 +00:00
|
|
|
export default appWithTranslation(MyApp)
|