|
@@ -20,6 +20,7 @@ import superjson from 'superjson';
|
|
|
import { PageAlerts } from '~/components/PageAlert/PageAlerts';
|
|
import { PageAlerts } from '~/components/PageAlert/PageAlerts';
|
|
|
// import { PageComments } from '~/components/PageComment/PageComments';
|
|
// import { PageComments } from '~/components/PageComment/PageComments';
|
|
|
// import { useTranslation } from '~/i18n';
|
|
// import { useTranslation } from '~/i18n';
|
|
|
|
|
+import { PageContentFooter } from '~/components/PageContentFooter';
|
|
|
import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
// import { renderScriptTagByName, renderHighlightJsStyleTag } from '~/service/cdn-resources-loader';
|
|
// import { renderScriptTagByName, renderHighlightJsStyleTag } from '~/service/cdn-resources-loader';
|
|
|
// import { useIndentSize } from '~/stores/editor';
|
|
// import { useIndentSize } from '~/stores/editor';
|
|
@@ -65,7 +66,7 @@ import {
|
|
|
useIsAclEnabled, useIsUserPage, useIsNotCreatable,
|
|
useIsAclEnabled, useIsUserPage, useIsNotCreatable,
|
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault, useCurrentPageId, useCurrentPathname,
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault, useCurrentPageId, useCurrentPathname,
|
|
|
useIsSlackConfigured, useIsBlinkedHeaderAtBoot, useRendererConfig, useEditingMarkdown,
|
|
useIsSlackConfigured, useIsBlinkedHeaderAtBoot, useRendererConfig, useEditingMarkdown,
|
|
|
- useEditorConfig,
|
|
|
|
|
|
|
+ useEditorConfig, useIsAllReplyShown,
|
|
|
} from '../stores/context';
|
|
} from '../stores/context';
|
|
|
import { useXss } from '../stores/xss';
|
|
import { useXss } from '../stores/xss';
|
|
|
|
|
|
|
@@ -150,7 +151,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: EditorConfig,
|
|
editorConfig: EditorConfig,
|
|
|
isEnabledStaleNotification: boolean,
|
|
isEnabledStaleNotification: boolean,
|
|
@@ -228,7 +229,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();
|
|
|
|
|
|
|
@@ -327,6 +328,7 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
<footer>
|
|
<footer>
|
|
|
{/* <PageComments /> */}
|
|
{/* <PageComments /> */}
|
|
|
PageComments
|
|
PageComments
|
|
|
|
|
+ <PageContentFooter />
|
|
|
</footer>
|
|
</footer>
|
|
|
|
|
|
|
|
<UnsavedAlertDialog />
|
|
<UnsavedAlertDialog />
|
|
@@ -481,7 +483,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');
|
|
@@ -501,7 +503,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,
|