|
|
@@ -23,7 +23,7 @@ import {
|
|
|
useCurrentUser,
|
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault,
|
|
|
- useRegistrationWhiteList,
|
|
|
+ useRegistrationWhiteList, useShowPageLimitationXL,
|
|
|
} from '~/stores/context';
|
|
|
import {
|
|
|
usePreferDrawerModeByUser, usePreferDrawerModeOnEditByUser, useSidebarCollapsed, useCurrentSidebarContents, useCurrentProductNavWidth,
|
|
|
@@ -45,6 +45,7 @@ type Props = CommonProps & {
|
|
|
isSearchScopeChildrenAsDefault: boolean,
|
|
|
userUISettings?: IUserUISettings
|
|
|
sidebarConfig: ISidebarConfig,
|
|
|
+ showPageLimitationXL: number,
|
|
|
|
|
|
// config
|
|
|
registrationWhiteList: string[],
|
|
|
@@ -62,8 +63,6 @@ const MePage: NextPage<Props> = (props: Props) => {
|
|
|
const { path } = router.query;
|
|
|
const pagePathKeys: string[] = Array.isArray(path) ? path : ['personal-settings'];
|
|
|
|
|
|
- console.log(pagePathKeys, 'pagePathKeys');
|
|
|
-
|
|
|
const mePagesMap = {
|
|
|
'personal-settings': {
|
|
|
title: t('User Settings'),
|
|
|
@@ -91,6 +90,8 @@ const MePage: NextPage<Props> = (props: Props) => {
|
|
|
|
|
|
useRegistrationWhiteList(props.registrationWhiteList);
|
|
|
|
|
|
+ useShowPageLimitationXL(props.showPageLimitationXL);
|
|
|
+
|
|
|
// commons
|
|
|
useCsrfToken(props.csrfToken);
|
|
|
|
|
|
@@ -154,6 +155,8 @@ async function injectServerConfigurations(context: GetServerSidePropsContext, pr
|
|
|
|
|
|
props.registrationWhiteList = configManager.getConfig('crowi', 'security:registrationWhiteList');
|
|
|
|
|
|
+ props.showPageLimitationXL = crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL');
|
|
|
+
|
|
|
props.sidebarConfig = {
|
|
|
isSidebarDrawerMode: configManager.getConfig('crowi', 'customize:isSidebarDrawerMode'),
|
|
|
isSidebarClosedAtDockMode: configManager.getConfig('crowi', 'customize:isSidebarClosedAtDockMode'),
|