zahmis 5 years ago
parent
commit
25e883ae5d

+ 0 - 9
src/client/js/app.jsx

@@ -8,11 +8,9 @@ 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 PageEditor from './components/PageEditor';
 import DisplaySwitcher from './components/Page/DisplaySwitcher';
 import DisplaySwitcher from './components/Page/DisplaySwitcher';
 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';
-// import PageEditorByHackmd from './components/PageEditorByHackmd';
 import Page from './components/Page';
 import Page from './components/Page';
 import PageComments from './components/PageComments';
 import PageComments from './components/PageComments';
 import PageTimeline from './components/PageTimeline';
 import PageTimeline from './components/PageTimeline';
@@ -108,17 +106,10 @@ 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, {
-    'page-editor': <PageEditor />,
     'display-switcher': <DisplaySwitcher />,
     'display-switcher': <DisplaySwitcher />,
     'editor-navbar-bottom': <EditorNavbarBottom />,
     'editor-navbar-bottom': <EditorNavbarBottom />,
 
 
   });
   });
-
-  // if (pageContainer.state.pageId != null) {
-  //   Object.assign(componentMappings, {
-  //     'page-editor-with-hackmd': <PageEditorByHackmd />,
-  //   });
-  // }
 }
 }
 
 
 Object.keys(componentMappings).forEach((key) => {
 Object.keys(componentMappings).forEach((key) => {

+ 0 - 3
src/client/js/components/Navbar/ThreeStrandedButton.jsx

@@ -2,7 +2,6 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 import { withTranslation } from 'react-i18next';
 import { withTranslation } from 'react-i18next';
 
 
-
 const ThreeStrandedButton = (props) => {
 const ThreeStrandedButton = (props) => {
   const { t } = props;
   const { t } = props;
 
 
@@ -12,9 +11,7 @@ const ThreeStrandedButton = (props) => {
     }
     }
   }
   }
 
 
-
   return (
   return (
-
     <div className="btn-group grw-three-stranded-button" role="group " aria-label="three-stranded-button">
     <div className="btn-group grw-three-stranded-button" role="group " aria-label="three-stranded-button">
       <button
       <button
         id="view"
         id="view"

+ 0 - 1
src/client/js/services/NavigationContainer.js

@@ -35,7 +35,6 @@ export default class NavigationContainer extends Container {
       isPageCreateModalShown: false,
       isPageCreateModalShown: false,
     };
     };
 
 
-
     this.openPageCreateModal = this.openPageCreateModal.bind(this);
     this.openPageCreateModal = this.openPageCreateModal.bind(this);
     this.closePageCreateModal = this.closePageCreateModal.bind(this);
     this.closePageCreateModal = this.closePageCreateModal.bind(this);
     this.initDeviceSize();
     this.initDeviceSize();