|
|
|
@ -1,22 +1,22 @@
|
|
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
|
|
import '../styles/globals.css';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import App, { AppInitialProps, AppProps } from 'next/app';
|
|
|
|
|
import { SWRConfig } from 'swr';
|
|
|
|
|
import { ToastProvider } from 'react-toast-notifications';
|
|
|
|
|
import Head from 'next/head';
|
|
|
|
|
import { parseCookies, setCookie } from 'nookies';
|
|
|
|
|
import Layout from '../components/Layout';
|
|
|
|
|
import { UserContext } from '../context/UserContext';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import { User } from '../hooks/useUser';
|
|
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
|
|
import { IntlProvider } from 'react-intl';
|
|
|
|
|
import { LanguageContext, AvailableLocales } from '../context/LanguageContext';
|
|
|
|
|
import Head from 'next/head';
|
|
|
|
|
import { ToastProvider } from 'react-toast-notifications';
|
|
|
|
|
import { SWRConfig } from 'swr';
|
|
|
|
|
import { PublicSettingsResponse } from '../../server/interfaces/api/settingsInterfaces';
|
|
|
|
|
import Layout from '../components/Layout';
|
|
|
|
|
import LoadingBar from '../components/LoadingBar';
|
|
|
|
|
import StatusChecker from '../components/StatusChacker';
|
|
|
|
|
import Toast from '../components/Toast';
|
|
|
|
|
import { InteractionProvider } from '../context/InteractionContext';
|
|
|
|
|
import StatusChecker from '../components/StatusChacker';
|
|
|
|
|
import { PublicSettingsResponse } from '../../server/interfaces/api/settingsInterfaces';
|
|
|
|
|
import { AvailableLocales, LanguageContext } from '../context/LanguageContext';
|
|
|
|
|
import { SettingsProvider } from '../context/SettingsContext';
|
|
|
|
|
import LoadingBar from '../components/LoadingBar';
|
|
|
|
|
import { UserContext } from '../context/UserContext';
|
|
|
|
|
import { User } from '../hooks/useUser';
|
|
|
|
|
import '../styles/globals.css';
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
const loadLocaleData = (locale: AvailableLocales): Promise<any> => {
|
|
|
|
@ -122,8 +122,8 @@ const CoreApp: Omit<NextAppComponentType, 'origGetInitialProps'> = ({
|
|
|
|
|
<title>Overseerr</title>
|
|
|
|
|
<meta
|
|
|
|
|
name="viewport"
|
|
|
|
|
content="width=device-width, initial-scale=1"
|
|
|
|
|
/>
|
|
|
|
|
content="initial-scale=1, viewport-fit=cover, width=device-width"
|
|
|
|
|
></meta>
|
|
|
|
|
</Head>
|
|
|
|
|
<StatusChecker />
|
|
|
|
|
<UserContext initialUser={user}>{component}</UserContext>
|
|
|
|
|