|
@@ -7,33 +7,15 @@ import dynamic from 'next/dynamic';
|
|
|
import { Container, Provider } from 'unstated';
|
|
import { Container, Provider } from 'unstated';
|
|
|
|
|
|
|
|
import AdminAppContainer from '~/client/services/AdminAppContainer';
|
|
import AdminAppContainer from '~/client/services/AdminAppContainer';
|
|
|
-import { SupportedActionType } from '~/interfaces/activity';
|
|
|
|
|
import { CommonProps, useCustomTitle } from '~/pages/utils/commons';
|
|
import { CommonProps, useCustomTitle } from '~/pages/utils/commons';
|
|
|
|
|
|
|
|
import { retrieveServerSideProps } from '../../utils/admin-page-util';
|
|
import { retrieveServerSideProps } from '../../utils/admin-page-util';
|
|
|
|
|
|
|
|
const AdminLayout = dynamic(() => import('~/components/Layout/AdminLayout'), { ssr: false });
|
|
const AdminLayout = dynamic(() => import('~/components/Layout/AdminLayout'), { ssr: false });
|
|
|
-
|
|
|
|
|
const AppSettingsPageContents = dynamic(() => import('~/components/Admin/App/AppSettingsPageContents'), { ssr: false });
|
|
const AppSettingsPageContents = dynamic(() => import('~/components/Admin/App/AppSettingsPageContents'), { ssr: false });
|
|
|
|
|
|
|
|
|
|
|
|
|
-type Props = CommonProps & {
|
|
|
|
|
- currentUser: any,
|
|
|
|
|
-
|
|
|
|
|
- envVars: any,
|
|
|
|
|
- isAclEnabled: boolean,
|
|
|
|
|
- isSearchServiceConfigured: boolean,
|
|
|
|
|
- isSearchServiceReachable: boolean,
|
|
|
|
|
- isMailerSetup: boolean,
|
|
|
|
|
- auditLogEnabled: boolean,
|
|
|
|
|
- auditLogAvailableActions: SupportedActionType[],
|
|
|
|
|
-
|
|
|
|
|
- customizeTitle: string,
|
|
|
|
|
- siteUrl: string,
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-const AdminAppPage: NextPage<Props> = (props) => {
|
|
|
|
|
|
|
+const AdminAppPage: NextPage<CommonProps> = (props) => {
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
const title = t('commons:headers.app_settings');
|
|
const title = t('commons:headers.app_settings');
|
|
@@ -41,7 +23,6 @@ const AdminAppPage: NextPage<Props> = (props) => {
|
|
|
|
|
|
|
|
if (isClient()) {
|
|
if (isClient()) {
|
|
|
const adminAppContainer = new AdminAppContainer();
|
|
const adminAppContainer = new AdminAppContainer();
|
|
|
-
|
|
|
|
|
injectableContainers.push(adminAppContainer);
|
|
injectableContainers.push(adminAppContainer);
|
|
|
}
|
|
}
|
|
|
|
|
|