Skip to content

Commit c4927e3

Browse files
committed
Update dependencies
1 parent 52d8473 commit c4927e3

File tree

14 files changed

+78
-51
lines changed

14 files changed

+78
-51
lines changed

.babelrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"react"
5+
],
6+
"plugins": [
7+
"transform-class-properties",
8+
[
9+
"transform-async-to-module-method",
10+
{
11+
"module": "bluebird",
12+
"method": "coroutine"
13+
}
14+
]
15+
]
16+
}

js/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component} from 'react/addons';
1+
import React, {Component} from 'react';
22
import ReactScrolla from 'react-scrolla';
33

44
import {LogProvider} from './Providers/LogProvider.js';

js/Components/Exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22
import {TraceLine} from './TraceLine.js';
33

44
import style from './Exception.less';

js/Components/LogEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22

33
import {ExceptionParser} from '../ExceptionParser.js';
44
import {Exception} from './Exception.js';

js/Components/LogLevel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22

33
export class LogLevel extends Component {
44
static levels = ['Debug', 'Info', 'Warning', 'Error', 'Fatal'];

js/Components/LogTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22
import {LogEntry} from './LogEntry.js';
33
import {LogLevel} from './LogLevel.js';
44
import Timestamp from 'react-time';

js/Components/LogUploader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22
import Dropzone from 'react-dropzone';
33

44
import style from './LogUploader.less';

js/Components/ToggleEntry.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22

33
import style from './ToggleEntry.less';
44

@@ -22,7 +22,8 @@ export class ToggleEntry extends Component {
2222
return this._id;
2323
};
2424

25-
onClick = () => {
25+
onClick = (e) => {
26+
e.preventDefault();
2627
let active = !this.state.active;
2728
this.setState({active});
2829
if (this.props.onChange) {

js/Components/TraceLine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from 'react/addons';
1+
import {Component} from 'react';
22

33
import style from './TraceLine.less';
44

js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22

33
import {App} from './App.js';
4-
5-
var React = require('react/addons');
4+
import React from 'react';
5+
import ReactDom from 'react-dom';
66

77
// Enable React devtools
88
window.React = React;
99

1010
$(document).ready(() => {
11-
React.render(<App />, document.getElementById('content-wrapper'));
11+
ReactDom.render(<App />, document.getElementById('content-wrapper'));
1212
});

0 commit comments

Comments
 (0)