|
@@ -8,6 +8,7 @@ import loggerFactory from '@alias/logger';
|
|
|
import ErrorBoundary from './components/ErrorBoudary';
|
|
import ErrorBoundary from './components/ErrorBoudary';
|
|
|
import SearchPage from './components/SearchPage';
|
|
import SearchPage from './components/SearchPage';
|
|
|
import TagsList from './components/TagsList';
|
|
import TagsList from './components/TagsList';
|
|
|
|
|
+import ViewEditHackmd from './components/Page/ViewEditHackmd';
|
|
|
import PageEditor from './components/PageEditor';
|
|
import PageEditor from './components/PageEditor';
|
|
|
import EditorNavbarBottom from './components/PageEditor/EditorNavbarBottom';
|
|
import EditorNavbarBottom from './components/PageEditor/EditorNavbarBottom';
|
|
|
import { defaultEditorOptions, defaultPreviewOptions } from './components/PageEditor/OptionsSelector';
|
|
import { defaultEditorOptions, defaultPreviewOptions } from './components/PageEditor/OptionsSelector';
|
|
@@ -110,6 +111,7 @@ if (pageContainer.state.path != null) {
|
|
|
// additional definitions if user is logged in
|
|
// additional definitions if user is logged in
|
|
|
if (appContainer.currentUser != null) {
|
|
if (appContainer.currentUser != null) {
|
|
|
Object.assign(componentMappings, {
|
|
Object.assign(componentMappings, {
|
|
|
|
|
+ 'view-edit-hackmd': <ViewEditHackmd />,
|
|
|
'page-editor': <PageEditor />,
|
|
'page-editor': <PageEditor />,
|
|
|
'page-editor-navbar-bottom-container': <EditorNavbarBottom />,
|
|
'page-editor-navbar-bottom-container': <EditorNavbarBottom />,
|
|
|
});
|
|
});
|