|
|
@@ -21,33 +21,34 @@ import loggerFactory from '~/utils/logger';
|
|
|
import { swrGlobalConfiguration } from '~/utils/swr-utils';
|
|
|
|
|
|
import ErrorBoundary from '../components/ErrorBoudary';
|
|
|
-import RedirectedAlert from '../components/Page/RedirectedAlert';
|
|
|
-import TrashPageList from '../components/TrashPageList';
|
|
|
-import TrashPageAlert from '../components/Page/TrashPageAlert';
|
|
|
-import NotFoundPage from '../components/NotFoundPage';
|
|
|
-import NotFoundAlert from '../components/Page/NotFoundAlert';
|
|
|
+import Fab from '../components/Fab';
|
|
|
import ForbiddenPage from '../components/ForbiddenPage';
|
|
|
-import PageStatusAlert from '../components/PageStatusAlert';
|
|
|
-import RecentCreated from '../components/RecentCreated/RecentCreated';
|
|
|
import RecentlyCreatedIcon from '../components/Icons/RecentlyCreatedIcon';
|
|
|
-import MyDraftList from '../components/MyDraftList/MyDraftList';
|
|
|
-import BookmarkList from '../components/PageList/BookmarkList';
|
|
|
-import Fab from '../components/Fab';
|
|
|
import InAppNotificationPage from '../components/InAppNotification/InAppNotificationPage';
|
|
|
+import MaintenanceModeContent from '../components/MaintenanceModeContent';
|
|
|
import PersonalSettings from '../components/Me/PersonalSettings';
|
|
|
+import MyDraftList from '../components/MyDraftList/MyDraftList';
|
|
|
import GrowiContextualSubNavigation from '../components/Navbar/GrowiContextualSubNavigation';
|
|
|
import GrowiSubNavigationSwitcher from '../components/Navbar/GrowiSubNavigationSwitcher';
|
|
|
+import NotFoundPage from '../components/NotFoundPage';
|
|
|
import Page from '../components/Page';
|
|
|
import DisplaySwitcher from '../components/Page/DisplaySwitcher';
|
|
|
+import NotFoundAlert from '../components/Page/NotFoundAlert';
|
|
|
+import RedirectedAlert from '../components/Page/RedirectedAlert';
|
|
|
import ShareLinkAlert from '../components/Page/ShareLinkAlert';
|
|
|
+import TrashPageAlert from '../components/Page/TrashPageAlert';
|
|
|
import PageComment from '../components/PageComment';
|
|
|
import CommentEditorLazyRenderer from '../components/PageComment/CommentEditorLazyRenderer';
|
|
|
import PageContentFooter from '../components/PageContentFooter';
|
|
|
import { defaultEditorOptions, defaultPreviewOptions } from '../components/PageEditor/OptionsSelector';
|
|
|
+import BookmarkList from '../components/PageList/BookmarkList';
|
|
|
+import PageStatusAlert from '../components/PageStatusAlert';
|
|
|
import PageTimeline from '../components/PageTimeline';
|
|
|
+import RecentCreated from '../components/RecentCreated/RecentCreated';
|
|
|
import { SearchPage } from '../components/SearchPage';
|
|
|
import Sidebar from '../components/Sidebar';
|
|
|
import TagPage from '../components/TagPage';
|
|
|
+import TrashPageList from '../components/TrashPageList';
|
|
|
|
|
|
import { appContainer, componentMappings } from './base';
|
|
|
import { toastError } from './util/apiNotification';
|
|
|
@@ -94,6 +95,8 @@ Object.assign(componentMappings, {
|
|
|
|
|
|
'grw-page-status-alert-container': <PageStatusAlert />,
|
|
|
|
|
|
+ 'maintenance-mode-content': <MaintenanceModeContent />,
|
|
|
+
|
|
|
'trash-page-alert': <TrashPageAlert />,
|
|
|
|
|
|
'trash-page-list-container': <TrashPageList />,
|
|
|
@@ -178,6 +181,7 @@ const renderMainComponents = () => {
|
|
|
|
|
|
// extract context before rendering main components
|
|
|
const elem = document.getElementById('growi-context-extractor');
|
|
|
+console.log('elem_hoge', elem);
|
|
|
if (elem != null) {
|
|
|
ReactDOM.render(
|
|
|
<SWRConfig value={swrGlobalConfiguration}>
|