diff --git a/frontend/components/Document/Document.js b/frontend/components/Document/Document.js
index fbe505d88..eaf68c1a9 100644
--- a/frontend/components/Document/Document.js
+++ b/frontend/components/Document/Document.js
@@ -2,11 +2,13 @@
import React from 'react';
import { toJS } from 'mobx';
import { observer } from 'mobx-react';
-import type { Document as DocumentType } from 'types';
+
import PublishingInfo from '../PublishingInfo';
import styles from './Document.scss';
import DocumentHtml from './components/DocumentHtml';
+import type { Document as DocumentType } from 'types';
+
@observer class Document extends React.Component {
props: {
document: DocumentType,
diff --git a/frontend/components/DocumentPreview/DocumentPreview.js b/frontend/components/DocumentPreview/DocumentPreview.js
index a609800d4..96a309c3f 100644
--- a/frontend/components/DocumentPreview/DocumentPreview.js
+++ b/frontend/components/DocumentPreview/DocumentPreview.js
@@ -1,12 +1,11 @@
import React from 'react';
import { toJS } from 'mobx';
-
import { Link } from 'react-router';
-import PublishingInfo from 'components/PublishingInfo';
-
import styles from './DocumentPreview.scss';
+import PublishingInfo from 'components/PublishingInfo';
+
class Document extends React.Component {
static propTypes = {
document: React.PropTypes.object.isRequired,
diff --git a/frontend/components/DropdownMenu/components/MoreIcon/MoreIcon.js b/frontend/components/DropdownMenu/components/MoreIcon/MoreIcon.js
index ab1a2ed38..18d271d37 100644
--- a/frontend/components/DropdownMenu/components/MoreIcon/MoreIcon.js
+++ b/frontend/components/DropdownMenu/components/MoreIcon/MoreIcon.js
@@ -2,8 +2,14 @@ import React from 'react';
import styles from './MoreIcon.scss';
-const MoreIcon = props => {
- return ;
+const MoreIcon = () => {
+ return (
+
+ );
};
export default MoreIcon;
diff --git a/frontend/components/Layout/Layout.js b/frontend/components/Layout/Layout.js
index 8238d40f1..afa7c8d89 100644
--- a/frontend/components/Layout/Layout.js
+++ b/frontend/components/Layout/Layout.js
@@ -5,11 +5,11 @@ import styled from 'styled-components';
import { observer, inject } from 'mobx-react';
import keydown from 'react-keydown';
import _ from 'lodash';
+import { Flex } from 'reflexbox';
import DropdownMenu, { MenuItem } from 'components/DropdownMenu';
-import { Flex } from 'reflexbox';
+
import LoadingIndicator from 'components/LoadingIndicator';
-import Alert from 'components/Alert';
import styles from './Layout.scss';
import classNames from 'classnames/bind';
diff --git a/frontend/components/Layout/components/Title/Title.js b/frontend/components/Layout/components/Title/Title.js
index 7dea7d387..9b3fcb215 100644
--- a/frontend/components/Layout/components/Title/Title.js
+++ b/frontend/components/Layout/components/Title/Title.js
@@ -1,16 +1,16 @@
+// @flow
import React from 'react';
import _ from 'lodash';
+import styled from 'styled-components';
-import styles from './Title.scss';
-import classNames from 'classnames/bind';
-const cx = classNames.bind(styles);
+type Props = {
+ children: string,
+ truncate?: number,
+ placeholder: string,
+};
class Title extends React.Component {
- static propTypes = {
- children: React.PropTypes.string,
- truncate: React.PropTypes.number,
- placeholder: React.PropTypes.string,
- };
+ props: Props;
render() {
let title;
@@ -29,15 +29,16 @@ class Title extends React.Component {
return (
{title && / }
-
+
+
);
}
@@ -82,7 +82,6 @@ class Node extends React.Component {
};
render() {
- const tree = this.props.tree;
const index = this.props.index;
const dragging = this.props.dragging;
const node = index.node;
diff --git a/frontend/components/Tree/UiTree.js b/frontend/components/Tree/UiTree.js
index 4b9a9dc5a..40aedc69e 100644
--- a/frontend/components/Tree/UiTree.js
+++ b/frontend/components/Tree/UiTree.js
@@ -4,7 +4,7 @@ const Node = require('./Node');
import styles from './Tree.scss';
-module.exports = React.createClass({
+export default React.createClass({
displayName: 'UITree',
propTypes: {
@@ -175,14 +175,14 @@ module.exports = React.createClass({
} else if (diffY > dragging.h) {
// down
if (index.next) {
- var below = tree.getIndex(index.next);
+ let below = tree.getIndex(index.next);
if (below.children && below.children.length && !below.node.collapsed) {
newIndex = tree.move(index.id, index.next, 'prepend');
} else {
newIndex = tree.move(index.id, index.next, 'after');
}
} else {
- var below = tree.getNodeByTop(index.top + index.height);
+ let below = tree.getNodeByTop(index.top + index.height);
if (below && below.parent !== index.id) {
if (below.children && below.children.length) {
newIndex = tree.move(index.id, below.id, 'prepend');
diff --git a/frontend/scenes/DocumentScene/DocumentSceneStore.js b/frontend/scenes/DocumentScene/DocumentSceneStore.js
index 220cd02f8..d0f419bc8 100644
--- a/frontend/scenes/DocumentScene/DocumentSceneStore.js
+++ b/frontend/scenes/DocumentScene/DocumentSceneStore.js
@@ -1,4 +1,5 @@
import _ from 'lodash';
+import { browserHistory } from 'react-router';
import {
observable,
action,
@@ -8,7 +9,6 @@ import {
autorunAsync,
} from 'mobx';
import { client } from 'utils/ApiClient';
-import { browserHistory } from 'react-router';
const DOCUMENT_PREFERENCES = 'DOCUMENT_PREFERENCES';
diff --git a/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js b/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js
index 46828f58c..624c05feb 100644
--- a/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js
+++ b/frontend/scenes/DocumentScene/components/Sidebar/Sidebar.js
@@ -1,6 +1,5 @@
import React, { PropTypes } from 'react';
import { observer } from 'mobx-react';
-import { Link } from 'react-router';
import { Flex } from 'reflexbox';
import Tree from 'components/Tree';
diff --git a/frontend/scenes/Home/animation.js b/frontend/scenes/Home/animation.js
deleted file mode 100644
index 1223bc5f9..000000000
--- a/frontend/scenes/Home/animation.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react';
-import { Frame } from 'react-keyframes';
-
-const frames = [];
-const p = node => frames.push(node);
-const E = props => {
- return (
-
- {props.children}
-
- );
-};
-
-const line1 =
Hi there,
; -const line2 =We're excited to share what we’re building.
; -const line3 =We **love** Markdown,
; -const line4 =but we also get that it's not for everyone.
; -const line5 =Together with you,
; -const line6 =we want to build the best place to
; -const line7 =share ideas,
; -const line8 =tell stories,
; -const line9 =and build knowledge.
; -const line10 =We're just getting started.
; -const line11 =Welcome to Atlas.
; - -p( -