|
@@ -64,6 +64,7 @@ import {
|
|
|
useIsAclEnabled, useIsUserPage, useIsNotCreatable,
|
|
useIsAclEnabled, useIsUserPage, useIsNotCreatable,
|
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault, useCurrentPageId, useCurrentPathname,
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault, useCurrentPageId, useCurrentPathname,
|
|
|
useIsSlackConfigured, useIsBlinkedHeaderAtBoot, useRendererConfig, useEditingMarkdown,
|
|
useIsSlackConfigured, useIsBlinkedHeaderAtBoot, useRendererConfig, useEditingMarkdown,
|
|
|
|
|
+ useIsAllReplyShown,
|
|
|
} from '../stores/context';
|
|
} from '../stores/context';
|
|
|
import { useXss } from '../stores/xss';
|
|
import { useXss } from '../stores/xss';
|
|
|
|
|
|
|
@@ -148,7 +149,7 @@ type Props = CommonProps & {
|
|
|
// mathJax: string,
|
|
// mathJax: string,
|
|
|
// noCdn: string,
|
|
// noCdn: string,
|
|
|
// highlightJsStyle: string,
|
|
// highlightJsStyle: string,
|
|
|
- // isAllReplyShown: boolean,
|
|
|
|
|
|
|
+ isAllReplyShown: boolean,
|
|
|
// isContainerFluid: boolean,
|
|
// isContainerFluid: boolean,
|
|
|
// editorConfig: any,
|
|
// editorConfig: any,
|
|
|
isEnabledStaleNotification: boolean,
|
|
isEnabledStaleNotification: boolean,
|
|
@@ -226,7 +227,7 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
useRendererConfig(props.rendererConfig);
|
|
useRendererConfig(props.rendererConfig);
|
|
|
// useRendererSettings(props.rendererSettingsStr != null ? JSON.parse(props.rendererSettingsStr) : undefined);
|
|
// useRendererSettings(props.rendererSettingsStr != null ? JSON.parse(props.rendererSettingsStr) : undefined);
|
|
|
// useGrowiRendererConfig(props.growiRendererConfigStr != null ? JSON.parse(props.growiRendererConfigStr) : undefined);
|
|
// useGrowiRendererConfig(props.growiRendererConfigStr != null ? JSON.parse(props.growiRendererConfigStr) : undefined);
|
|
|
-
|
|
|
|
|
|
|
+ useIsAllReplyShown(props.isAllReplyShown);
|
|
|
|
|
|
|
|
// const { data: editorMode } = useEditorMode();
|
|
// const { data: editorMode } = useEditorMode();
|
|
|
|
|
|
|
@@ -480,7 +481,7 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
// props.mathJax = configManager.getConfig('crowi', 'app:mathJax');
|
|
// props.mathJax = configManager.getConfig('crowi', 'app:mathJax');
|
|
|
// props.noCdn = configManager.getConfig('crowi', 'app:noCdn');
|
|
// props.noCdn = configManager.getConfig('crowi', 'app:noCdn');
|
|
|
// props.highlightJsStyle = configManager.getConfig('crowi', 'customize:highlightJsStyle');
|
|
// props.highlightJsStyle = configManager.getConfig('crowi', 'customize:highlightJsStyle');
|
|
|
- // props.isAllReplyShown = configManager.getConfig('crowi', 'customize:isAllReplyShown');
|
|
|
|
|
|
|
+ props.isAllReplyShown = configManager.getConfig('crowi', 'customize:isAllReplyShown');
|
|
|
// props.isContainerFluid = configManager.getConfig('crowi', 'customize:isContainerFluid');
|
|
// props.isContainerFluid = configManager.getConfig('crowi', 'customize:isContainerFluid');
|
|
|
props.isEnabledStaleNotification = configManager.getConfig('crowi', 'customize:isEnabledStaleNotification');
|
|
props.isEnabledStaleNotification = configManager.getConfig('crowi', 'customize:isEnabledStaleNotification');
|
|
|
// props.isEnabledLinebreaks = configManager.getConfig('markdown', 'markdown:isEnabledLinebreaks');
|
|
// props.isEnabledLinebreaks = configManager.getConfig('markdown', 'markdown:isEnabledLinebreaks');
|
|
@@ -500,7 +501,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
isEnabledLinebreaksInComments: configManager.getConfig('markdown', 'markdown:isEnabledLinebreaksInComments'),
|
|
isEnabledLinebreaksInComments: configManager.getConfig('markdown', 'markdown:isEnabledLinebreaksInComments'),
|
|
|
adminPreferredIndentSize: configManager.getConfig('markdown', 'markdown:adminPreferredIndentSize'),
|
|
adminPreferredIndentSize: configManager.getConfig('markdown', 'markdown:adminPreferredIndentSize'),
|
|
|
isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
|
|
isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
|
|
|
- isAllReplyShown: configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
|
|
|
|
|
|
|
|
plantumlUri: process.env.PLANTUML_URI ?? null,
|
|
plantumlUri: process.env.PLANTUML_URI ?? null,
|
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|