|
|
@@ -23,7 +23,7 @@ import ShareLink from '~/server/models/share-link';
|
|
|
import {
|
|
|
useCurrentUser, useRendererConfig, useIsSearchPage, useCurrentPathname,
|
|
|
useShareLinkId, useIsSearchServiceConfigured, useIsSearchServiceReachable, useIsSearchScopeChildrenAsDefault, useIsContainerFluid, useIsEnabledMarp,
|
|
|
- useIsLocalAccountRegistrationEnabled,
|
|
|
+ useIsLocalAccountRegistrationEnabled, useShowPageSideAuthors,
|
|
|
} from '~/stores-universal/context';
|
|
|
import { useCurrentPageId, useIsNotFound, useSWRMUTxCurrentPage } from '~/stores/page';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
@@ -49,6 +49,7 @@ type Props = CommonProps & {
|
|
|
isSearchServiceConfigured: boolean,
|
|
|
isSearchServiceReachable: boolean,
|
|
|
isSearchScopeChildrenAsDefault: boolean,
|
|
|
+ showPageSideAuthors: boolean,
|
|
|
isEnabledMarp: boolean,
|
|
|
isLocalAccountRegistrationEnabled: boolean,
|
|
|
drawioUri: string | null,
|
|
|
@@ -99,6 +100,7 @@ const SharedPage: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
useIsSearchScopeChildrenAsDefault(props.isSearchScopeChildrenAsDefault);
|
|
|
useIsEnabledMarp(props.rendererConfig.isEnabledMarp);
|
|
|
useIsLocalAccountRegistrationEnabled(props.isLocalAccountRegistrationEnabled);
|
|
|
+ useShowPageSideAuthors(props.showPageSideAuthors);
|
|
|
useIsContainerFluid(props.isContainerFluid);
|
|
|
|
|
|
const { trigger: mutateCurrentPage, data: currentPage } = useSWRMUTxCurrentPage();
|
|
|
@@ -164,6 +166,8 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
|
|
|
props.drawioUri = configManager.getConfig('app:drawioUri');
|
|
|
|
|
|
+ props.showPageSideAuthors = configManager.getConfig('customize:showPageSideAuthors');
|
|
|
+
|
|
|
props.isLocalAccountRegistrationEnabled = crowi.passportService.isLocalStrategySetup
|
|
|
&& configManager.getConfig('security:registrationMode') !== RegistrationMode.CLOSED;
|
|
|
|