mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 07:08:40 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
31
src/pages/_app.tsx
Normal file
31
src/pages/_app.tsx
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import type { AppProps } from 'next/app'
|
||||
import { store } from '../redux'
|
||||
import { Provider } from 'react-redux'
|
||||
import { ErrorBoundary } from '../components/error-boundary/error-boundary'
|
||||
import { ApplicationLoader } from '../components/application-loader/application-loader'
|
||||
import '../../global-styles/dark.scss'
|
||||
import '../../global-styles/index.scss'
|
||||
import type { NextPage } from 'next'
|
||||
|
||||
/**
|
||||
* The actual hedgedoc next js app.
|
||||
* Provides necessary wrapper components to every page.
|
||||
*/
|
||||
const HedgeDocApp: NextPage<AppProps> = ({ Component, pageProps }: AppProps) => {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<ApplicationLoader>
|
||||
<ErrorBoundary>
|
||||
<Component {...pageProps} />
|
||||
</ErrorBoundary>
|
||||
</ApplicationLoader>
|
||||
</Provider>
|
||||
)
|
||||
}
|
||||
|
||||
export default HedgeDocApp
|
Loading…
Add table
Add a link
Reference in a new issue