File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 44
44
},
45
45
"devDependencies" : {
46
46
"alex" : " ^2.0.1" ,
47
- "babel-cli" : " ^6.6.0 " ,
48
- "babel-core" : " ^6.6.0 " ,
47
+ "babel-cli" : " ^6.6.4 " ,
48
+ "babel-core" : " ^6.6.4 " ,
49
49
"babel-eslint" : " ^5.0.0" ,
50
50
"babel-jest" : " ^6.0.1" ,
51
51
"babel-loader" : " ^6.2.4" ,
60
60
"eslint-config-airbnb" : " 6.0.2" ,
61
61
"eslint-plugin-mocha" : " ^2.0.0" ,
62
62
"eslint-plugin-react" : " ^4.1.0" ,
63
- "flow-bin" : " ^0.22.0 " ,
63
+ "flow-bin" : " ^0.22.1 " ,
64
64
"jest-cli" : " ^0.8.2" ,
65
- "jscs" : " ^2.10.1 " ,
65
+ "jscs" : " ^2.11.0 " ,
66
66
"react" : " ^0.14.7" ,
67
67
"react-addons-test-utils" : " ^0.14.7" ,
68
68
"react-dom" : " ^0.14.7" ,
72
72
"style-loader" : " ^0.13.0" ,
73
73
"webpack" : " ^1.12.14" ,
74
74
"webpack-dev-middleware" : " ^1.5.1" ,
75
- "webpack-hot-middleware" : " =2.7 .1"
75
+ "webpack-hot-middleware" : " =2.9 .1"
76
76
},
77
77
"jest" : {
78
78
"testRunner" : " <rootDir>/node_modules/jest-cli/src/testRunners/jasmine/jasmine2.js" ,
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ import {
2
2
default as React ,
3
3
Component ,
4
4
PropTypes ,
5
- } from " react" ;
5
+ } from ' react' ;
6
6
7
7
import {
8
8
default as ReactComponentWithPureRenderMixin ,
9
- } from "react-addons-pure-render-mixin" ;
9
+ } from 'react-addons-pure-render-mixin' ;
10
+
11
+ import Prism from 'prismjs' ;
10
12
11
13
export default class Code extends Component {
12
14
static propTypes = {
13
15
className : PropTypes . string ,
14
- children : PropTypes . any ,
16
+ code : PropTypes . string ,
15
17
} ;
16
18
17
19
componentDidMount ( ) {
@@ -29,7 +31,7 @@ export default class Code extends Component {
29
31
}
30
32
31
33
render ( ) {
32
- const className = ( this . props . language ? ' language-' + this . props . language : '' ) ;
34
+ const className = ( this . props . language ? ` language-${ this . props . language } ` : '' ) ;
33
35
return (
34
36
< code
35
37
ref = "code"
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
2
import styles from './styles' ;
3
3
4
- import Code from " ../CodeHighlight" ;
4
+ import Code from ' ../CodeHighlight' ;
5
5
6
6
export default class StatePreview extends Component {
7
7
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ <h2 class="available-plugins">Available Plugins</h2>
45
45
</ span >
46
46
on Planet Earth :)
47
47
</ footer >
48
- < script src ="node_modules/prismjs/prism.js "> </ script >
49
48
< script src ="static/bundle.js "> </ script >
50
49
</ body >
51
50
</ html >
Original file line number Diff line number Diff line change 19
19
"react-dom" : " ^=0.14.7"
20
20
},
21
21
"devDependencies" : {
22
- "babel-core" : " ^6.6.0 " ,
22
+ "babel-core" : " ^6.6.4 " ,
23
23
"babel-loader" : " ^6.2.4" ,
24
24
"eslint" : " ^2.2.0" ,
25
25
"eslint-config-airbnb" : " ^6.0.2" ,
You can’t perform that action at this time.
0 commit comments