🚨Fix compilation errors
This commit is contained in:
@@ -15,12 +15,11 @@ import { ConfigType } from '~/types/config';
|
|||||||
|
|
||||||
export default function BoardPage({
|
export default function BoardPage({
|
||||||
config: initialConfig,
|
config: initialConfig,
|
||||||
dockerEnabled,
|
|
||||||
}: InferGetServerSidePropsType<typeof getServerSideProps>) {
|
}: InferGetServerSidePropsType<typeof getServerSideProps>) {
|
||||||
useInitConfig(initialConfig);
|
useInitConfig(initialConfig);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BoardLayout dockerEnabled={dockerEnabled}>
|
<BoardLayout>
|
||||||
<Dashboard />
|
<Dashboard />
|
||||||
</BoardLayout>
|
</BoardLayout>
|
||||||
);
|
);
|
||||||
@@ -28,7 +27,6 @@ export default function BoardPage({
|
|||||||
|
|
||||||
type BoardGetServerSideProps = {
|
type BoardGetServerSideProps = {
|
||||||
config: ConfigType;
|
config: ConfigType;
|
||||||
dockerEnabled: boolean;
|
|
||||||
_nextI18Next?: SSRConfig['_nextI18Next'];
|
_nextI18Next?: SSRConfig['_nextI18Next'];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -76,7 +74,6 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
|
|||||||
primaryColor: config.settings.customization.colors.primary,
|
primaryColor: config.settings.customization.colors.primary,
|
||||||
secondaryColor: config.settings.customization.colors.secondary,
|
secondaryColor: config.settings.customization.colors.secondary,
|
||||||
primaryShade: config.settings.customization.colors.shade,
|
primaryShade: config.settings.customization.colors.shade,
|
||||||
dockerEnabled: !!env.DOCKER_HOST && !!env.DOCKER_PORT,
|
|
||||||
...translations,
|
...translations,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
import { eq } from 'drizzle-orm';
|
|
||||||
import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
|
import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
|
||||||
import { SSRConfig } from 'next-i18next';
|
import { SSRConfig } from 'next-i18next';
|
||||||
import { Dashboard } from '~/components/Dashboard/Dashboard';
|
import { Dashboard } from '~/components/Dashboard/Dashboard';
|
||||||
import { BoardLayout } from '~/components/layout/Templates/BoardLayout';
|
import { BoardLayout } from '~/components/layout/Templates/BoardLayout';
|
||||||
import { useInitConfig } from '~/config/init';
|
import { useInitConfig } from '~/config/init';
|
||||||
import { env } from '~/env';
|
|
||||||
import { getServerAuthSession } from '~/server/auth';
|
import { getServerAuthSession } from '~/server/auth';
|
||||||
import { db } from '~/server/db';
|
|
||||||
import { getDefaultBoardAsync } from '~/server/db/queries/userSettings';
|
import { getDefaultBoardAsync } from '~/server/db/queries/userSettings';
|
||||||
import { userSettings } from '~/server/db/schema';
|
|
||||||
import { getFrontendConfig } from '~/tools/config/getFrontendConfig';
|
import { getFrontendConfig } from '~/tools/config/getFrontendConfig';
|
||||||
import { getServerSideTranslations } from '~/tools/server/getServerSideTranslations';
|
import { getServerSideTranslations } from '~/tools/server/getServerSideTranslations';
|
||||||
import { checkForSessionOrAskForLogin } from '~/tools/server/loginBuilder';
|
import { checkForSessionOrAskForLogin } from '~/tools/server/loginBuilder';
|
||||||
|
|||||||
Reference in New Issue
Block a user