diff --git a/.eslintrc.json b/.eslintrc.json index 24d4002..965dbbd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -63,8 +63,8 @@ "react/jsx-filename-extension": 0, "react/jsx-equals-spacing": 1, "react/jsx-handler-names": 1, - "react/jsx-indent-props": 1, - "react/jsx-indent": 1, + "react/jsx-indent-props": [1, 2], + "react/jsx-indent": [1, 2], "react/jsx-key": 1, "react/jsx-max-props-per-line": 0, "react/jsx-no-bind": 1, diff --git a/src/containers/app.js b/src/containers/app.js index cbadf8b..5b12b5f 100644 --- a/src/containers/app.js +++ b/src/containers/app.js @@ -35,34 +35,34 @@ class App extends Component { render() { return ( - - {/*TODO Extract as header container.*/} - - - - - - - - + + {/*TODO Extract as header container.*/} + + + + + + + + - {/*TODO Extract as site header container.*/} - + {/*TODO Extract as site header container.*/} + - {/*TODO Extract as Main body and navigation sidebar containers.*/} - - - - - - - - - + {/*TODO Extract as Main body and navigation sidebar containers.*/} + + + + + + + + + - {/*TODO Extract as site footer container.*/} - - + {/*TODO Extract as site footer container.*/} + + ); } } diff --git a/src/entry.js b/src/entry.js index d160ac4..5d814b0 100644 --- a/src/entry.js +++ b/src/entry.js @@ -24,11 +24,11 @@ const location = window.location.pathname.substring(1); appStore.dispatch(fetchPage(location)); const RookeriesWiredApp = ( - - - - - + + + + + ); render(RookeriesWiredApp, document.getElementById("ui-target")); diff --git a/src/server.js b/src/server.js index f5ed34a..d5a8b49 100644 --- a/src/server.js +++ b/src/server.js @@ -24,11 +24,11 @@ export function renderReactComponentsToString() { const context = {}; return { bodyContent: render(h( - - - - - + + + + + )) }; diff --git a/src/views/code_editor.js b/src/views/code_editor.js index e71d213..78c897c 100644 --- a/src/views/code_editor.js +++ b/src/views/code_editor.js @@ -16,7 +16,7 @@ import PropTypes from "prop-types"; see issue https://github.com/JedWatson/react-codemirror/issues/34 Also add in the themes in the CSS to get proper theming support. */ -import CodeMirror from "react-codemirror"; +import CodeMirror from "react-codemirror2"; // TODO: Figure out how to work around this import. // Workaround for rendering CodeMirror server-side diff --git a/src/views/journal_markdown_viewer.js b/src/views/journal_markdown_viewer.js index 10d5d25..bee0bed 100644 --- a/src/views/journal_markdown_viewer.js +++ b/src/views/journal_markdown_viewer.js @@ -146,22 +146,22 @@ export class JournalMarkdownView extends Component { // # TODO Factor the view into something nicer. let showEditorButton = ( - + ); // # TODO Add in ability to display mhessages outside the collapsible pane let showPanel = ( - - - - - + + + + + ); if (this.state.editorPaneState === EditorPaneState.hidden) { showEditorButton = (
); @@ -169,12 +169,12 @@ export class JournalMarkdownView extends Component { } return ( -
-

{ this.props.title }

- - { showEditorButton } - { showPanel } -
+
+

{ this.props.title }

+ + { showEditorButton } + { showPanel } +
); } } diff --git a/src/views/navigation_menu.js b/src/views/navigation_menu.js index cb99542..694d61d 100644 --- a/src/views/navigation_menu.js +++ b/src/views/navigation_menu.js @@ -25,11 +25,11 @@ class NavigationMenuItem extends Component { render() { return ( - - - { this.props.title } - - ); + + + { this.props.title } + + ); } } @@ -52,17 +52,17 @@ class NavigationMenu extends Component { let menuId = `${menuItem.title.toLowerCase()}_${menuItem.url.substring(1, menuItem.url.length)}`; // TODO Fix API for application menu. let menu = ( - + ); navigationMenuItems.push(menu); } return ( - - - + + + ); } } diff --git a/src/views/site_footer.js b/src/views/site_footer.js index 7859dc6..321c4ba 100644 --- a/src/views/site_footer.js +++ b/src/views/site_footer.js @@ -22,11 +22,11 @@ export class SiteFooter extends Component { render() { return ( - - -
{ this.props.footer }
- -
+ + +
{ this.props.footer }
+ +
); } } diff --git a/src/views/site_header.js b/src/views/site_header.js index 6f1f174..9c8a9c8 100644 --- a/src/views/site_header.js +++ b/src/views/site_header.js @@ -24,20 +24,20 @@ export class SiteHeader extends Component { render() { let headerLogoAltText = `${this.props.siteName} logo`; return ( - - - - - { - - -

{ this.props.siteName }

- -

{ this.props.tagline }

- -
+ + + + + { - + +

{ this.props.siteName }

+ +

{ this.props.tagline }

+ +
+ +
); } } diff --git a/src/views/theme_switcher_button.js b/src/views/theme_switcher_button.js index 66ccd41..aab0eba 100644 --- a/src/views/theme_switcher_button.js +++ b/src/views/theme_switcher_button.js @@ -31,10 +31,10 @@ export class ThemeSwitchView extends Component { render() { let changeThemeText = `Change to ${this.props.alternativeTheme} theme`; return ( -
-    - { changeThemeText } -
+
+    + { changeThemeText } +
); } } diff --git a/src/views/user_login_modal.js b/src/views/user_login_modal.js index 1f83ecc..f592639 100644 --- a/src/views/user_login_modal.js +++ b/src/views/user_login_modal.js @@ -116,9 +116,9 @@ export class UserLoginView extends Component { let loginButtonDisabled = this.state.username === "" || this.state.password === ""; return ( -
-
- +
+
+   Hello { this.props.fullName }!   @@ -126,41 +126,41 @@ export class UserLoginView extends Component {   Do you want to { loginMessage }?
- - + + User Login - - {errorDisplay} -
- - - - - - - - - - - - - - - - -
-
+ + {errorDisplay} +
+ + + + + + + + + + + + + + + + +
+
- - - - -
-
+ + + + + +
); } }