|
|
@@ -156,6 +156,8 @@ type Props = CommonProps & {
|
|
|
// isIndentSizeForced: boolean,
|
|
|
disableLinkSharing: boolean,
|
|
|
|
|
|
+ isMaintenanceMode: boolean,
|
|
|
+
|
|
|
rendererConfig: RendererConfig,
|
|
|
|
|
|
// UI
|
|
|
@@ -175,6 +177,8 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
|
|
|
const { data: currentUser } = useCurrentUser(props.currentUser ?? null);
|
|
|
|
|
|
+ console.log('メンテ?', props.isMaintenanceMode)
|
|
|
+
|
|
|
// register global EventEmitter
|
|
|
if (isClient()) {
|
|
|
(window as CustomWindow).globalEmitter = new EventEmitter();
|
|
|
@@ -278,6 +282,10 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
// classNames.push('not-found-page');
|
|
|
// }
|
|
|
|
|
|
+ if (props.isMaintenanceMode) {
|
|
|
+ return <>メンテナンスモード</>
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<>
|
|
|
<Head>
|
|
|
@@ -540,6 +548,8 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
// props.adminPreferredIndentSize = configManager.getConfig('markdown', 'markdown:adminPreferredIndentSize');
|
|
|
// props.isIndentSizeForced = configManager.getConfig('markdown', 'markdown:isIndentSizeForced');
|
|
|
|
|
|
+ props.isMaintenanceMode = crowi.appService.isMaintenanceMode();
|
|
|
+
|
|
|
props.rendererConfig = {
|
|
|
isEnabledLinebreaks: configManager.getConfig('markdown', 'markdown:isEnabledLinebreaks'),
|
|
|
isEnabledLinebreaksInComments: configManager.getConfig('markdown', 'markdown:isEnabledLinebreaksInComments'),
|