2021-02-04 18:17:20 +01:00
|
|
|
// order matters!
|
2021-02-14 09:41:20 +01:00
|
|
|
import '../styles/variables.scss';
|
2022-04-19 23:33:43 +02:00
|
|
|
import '../styles/global.less';
|
|
|
|
import '../styles/globals.scss';
|
2022-04-18 07:32:57 +02:00
|
|
|
// import '../styles/ant-overrides.scss';
|
2021-02-04 18:17:20 +01:00
|
|
|
import '../styles/markdown-editor.scss';
|
|
|
|
|
|
|
|
import '../styles/main-layout.scss';
|
2020-11-13 12:43:28 +01:00
|
|
|
|
2021-02-04 17:04:00 +01:00
|
|
|
import '../styles/form-textfields.scss';
|
|
|
|
import '../styles/form-misc-elements.scss';
|
|
|
|
import '../styles/config-socialhandles.scss';
|
|
|
|
import '../styles/config-storage.scss';
|
2021-07-26 07:12:50 +02:00
|
|
|
import '../styles/config-edit-string-tags.scss';
|
2021-02-04 17:04:00 +01:00
|
|
|
import '../styles/config-video-variants.scss';
|
2021-02-13 08:55:59 +01:00
|
|
|
import '../styles/config-public-details.scss';
|
2021-02-04 17:04:00 +01:00
|
|
|
|
2020-11-13 12:43:28 +01:00
|
|
|
import '../styles/home.scss';
|
2020-12-23 08:15:37 +01:00
|
|
|
import '../styles/chat.scss';
|
2021-02-14 10:30:42 +01:00
|
|
|
import '../styles/pages.scss';
|
2021-05-28 00:58:31 +02:00
|
|
|
import '../styles/offline-notice.scss';
|
2020-10-22 10:03:15 +02:00
|
|
|
|
2020-10-23 01:18:18 +02:00
|
|
|
import { AppProps } from 'next/app';
|
2022-04-20 04:57:27 +02:00
|
|
|
import { useRouter } from 'next/router';
|
2021-02-04 08:24:12 +01:00
|
|
|
|
2022-04-20 04:57:27 +02:00
|
|
|
import AdminLayout from './admin/admin-layout';
|
|
|
|
import SimpleLayout from '../components/layouts/simple-layout';
|
2020-10-23 01:18:18 +02:00
|
|
|
|
2020-10-01 00:12:10 +02:00
|
|
|
function App({ Component, pageProps }: AppProps) {
|
2022-04-20 04:57:27 +02:00
|
|
|
const router = useRouter();
|
|
|
|
if (router.pathname.startsWith('/admin')) {
|
|
|
|
return <AdminLayout pageProps={pageProps} Component={Component} router={router} />;
|
|
|
|
}
|
|
|
|
return <SimpleLayout pageProps={pageProps} Component={Component} router={router} />;
|
2020-10-01 00:12:10 +02:00
|
|
|
}
|
|
|
|
|
2021-01-31 10:38:20 +01:00
|
|
|
export default App;
|