File tree Expand file tree Collapse file tree 13 files changed +35
-24
lines changed
src/sentry/static/sentry/app Expand file tree Collapse file tree 13 files changed +35
-24
lines changed Original file line number Diff line number Diff line change 28
28
"react" : " 0.14.0" ,
29
29
"react-bootstrap" : " ^0.27.0" ,
30
30
"react-document-title" : " ^1.0.2" ,
31
+ "react-dom" : " ^0.14.0" ,
31
32
"react-lazy-load" :
" [email protected] :benvinegar/react-lazy-load.git#3abc798f58afdf34e4bf691e6324bcc636c579ae" ,
32
33
"react-router" :
" [email protected] :benvinegar/react-router.git#f1ff6c68facff8cd5948e56e3bf9742ffe30625c" ,
33
34
"react-sticky" : " ^2.5.2" ,
Original file line number Diff line number Diff line change 1
- import jQuery from "jquery" ;
2
1
import React from "react" ;
2
+ import jQuery from "jquery" ;
3
+ import ReactDOM from "react-dom" ;
3
4
4
5
const AutoSelectText = React . createClass ( {
5
6
componentDidMount ( ) {
6
- let ref = React . findDOMNode ( this . refs . element ) ;
7
+ let ref = ReactDOM . findDOMNode ( this . refs . element ) ;
7
8
jQuery ( ref ) . bind ( 'click' , this . selectText ) ;
8
9
} ,
9
10
10
11
componentWillUnmount ( ) {
11
- let ref = React . findDOMNode ( this . refs . element ) ;
12
+ let ref = ReactDOM . findDOMNode ( this . refs . element ) ;
12
13
jQuery ( ref ) . unbind ( 'click' , this . selectText ) ;
13
14
} ,
14
15
15
16
selectText ( ) {
16
- var node = React . findDOMNode ( this . refs . element ) . firstChild ;
17
+ var node = ReactDOM . findDOMNode ( this . refs . element ) . firstChild ;
17
18
if ( document . selection ) {
18
19
let range = document . body . createTextRange ( ) ;
19
20
range . moveToElementText ( node ) ;
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import ReactDOM from "react-dom" ;
2
3
3
4
var ClippedBox = React . createClass ( {
4
5
propTypes : {
@@ -20,7 +21,7 @@ var ClippedBox = React.createClass({
20
21
} ,
21
22
22
23
componentDidMount ( ) {
23
- var renderedHeight = React . findDOMNode ( this ) . offsetHeight ;
24
+ var renderedHeight = ReactDOM . findDOMNode ( this ) . offsetHeight ;
24
25
25
26
if ( renderedHeight > this . props . clipHeight ) {
26
27
/*eslint react/no-did-mount-set-state:0*/
Original file line number Diff line number Diff line change 1
- import classNames from "classnames" ;
2
1
import React from "react" ;
2
+ import ReactDOM from "react-dom" ;
3
+ import classNames from "classnames" ;
3
4
4
5
require ( "bootstrap/js/dropdown" ) ;
5
6
@@ -20,11 +21,11 @@ var DropdownLink = React.createClass({
20
21
} ,
21
22
22
23
isOpen ( ) {
23
- return React . findDOMNode ( this ) . classList . contains ( "open" ) ;
24
+ return ReactDOM . findDOMNode ( this ) . classList . contains ( "open" ) ;
24
25
} ,
25
26
26
27
close ( ) {
27
- React . findDOMNode ( this ) . classList . remove ( "open" ) ;
28
+ ReactDOM . findDOMNode ( this ) . classList . remove ( "open" ) ;
28
29
} ,
29
30
30
31
onToggle ( e ) {
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import ReactDOM from 'react-dom' ;
2
3
import jQuery from 'jquery' ;
3
4
import moment from 'moment' ;
4
5
@@ -113,7 +114,7 @@ var FlotChart = React.createClass({
113
114
lines : { show : false }
114
115
} ;
115
116
116
- var chart = React . findDOMNode ( this . refs . chartNode ) ;
117
+ var chart = ReactDOM . findDOMNode ( this . refs . chartNode ) ;
117
118
jQuery . plot ( chart , series , plotOptions ) ;
118
119
} ,
119
120
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import ReactDOM from "react-dom" ;
2
3
import Router from "react-router" ;
3
4
import jQuery from "jquery" ;
4
5
import ConfigStore from "../../stores/configStore" ;
@@ -132,7 +133,7 @@ var ProjectSelector = React.createClass({
132
133
} ,
133
134
134
135
onOpen ( evt ) {
135
- React . findDOMNode ( this . refs . filter ) . focus ( ) ;
136
+ ReactDOM . findDOMNode ( this . refs . filter ) . focus ( ) ;
136
137
} ,
137
138
138
139
onClose ( ) {
@@ -143,7 +144,7 @@ var ProjectSelector = React.createClass({
143
144
144
145
componentDidUpdate ( prevProps , prevState ) {
145
146
// XXX(dcramer): fix odd dedraw issue as of Chrome 45.0.2454.15 dev (64-bit)
146
- var node = jQuery ( React . findDOMNode ( this . refs . container ) ) ;
147
+ var node = jQuery ( ReactDOM . findDOMNode ( this . refs . container ) ) ;
147
148
node . hide ( ) . show ( 0 ) ;
148
149
} ,
149
150
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import ReactDOM from "react-dom" ;
2
3
var PureRenderMixin = require ( 'react/addons' ) . addons . PureRenderMixin ;
3
4
4
5
var SearchBar = React . createClass ( {
@@ -24,7 +25,7 @@ var SearchBar = React.createClass({
24
25
} ,
25
26
26
27
blur ( ) {
27
- React . findDOMNode ( this . refs . searchInput ) . blur ( ) ;
28
+ ReactDOM . findDOMNode ( this . refs . searchInput ) . blur ( ) ;
28
29
} ,
29
30
30
31
onSubmit ( evt ) {
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ var SelectInput = React.createClass({
23
23
} ,
24
24
25
25
create ( ) {
26
- this . select2 = jQuery ( this . refs . select . getDOMNode ( ) ) . select2 ( ) ;
26
+ this . select2 = jQuery ( this . refs . select ) . select2 ( ) ;
27
27
this . select2 . on ( 'change' , this . onChange ) ;
28
28
} ,
29
29
30
30
destroy ( ) {
31
- jQuery ( this . refs . select . getDOMNode ( ) ) . select2 ( 'destroy' ) ;
31
+ jQuery ( this . refs . select ) . select2 ( 'destroy' ) ;
32
32
} ,
33
33
34
34
onChange ( ...args ) {
Original file line number Diff line number Diff line change
1
+ import ReactDOM from "react-dom" ;
1
2
import $ from "jquery" ;
2
3
import "bootstrap/js/tooltip" ;
3
4
@@ -10,18 +11,18 @@ export default function (options) {
10
11
11
12
componentWillUnmount ( ) {
12
13
this . removeTooltips ( ) ;
13
- $ ( this . getDOMNode ( ) ) . unbind ( ) ;
14
+ $ ( ReactDOM . findDOMNode ( this ) ) . unbind ( ) ;
14
15
} ,
15
16
16
17
attachTooltips ( ) {
17
- $ ( this . getDOMNode ( ) ) . tooltip (
18
+ $ ( ReactDOM . findDOMNode ( this ) ) . tooltip (
18
19
Object . prototype . toString . call ( options ) === '[object Function]' ?
19
20
options . call ( this ) : options
20
21
) ;
21
22
} ,
22
23
23
24
removeTooltips ( ) {
24
- $ ( this . getDOMNode ( ) )
25
+ $ ( ReactDOM . findDOMNode ( this ) )
25
26
. tooltip ( "destroy" ) // destroy tooltips on parent ...
26
27
. find ( options . selector )
27
28
. tooltip ( "destroy" ) ; // ... and descendents
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import ReactDOM from "react-dom" ;
2
3
import $ from "jquery" ;
3
4
import api from "../../api" ;
4
5
import IndicatorStore from '../../stores/indicatorStore' ;
@@ -31,13 +32,13 @@ var RuleEditor = React.createClass({
31
32
32
33
componentDidUpdate ( ) {
33
34
if ( this . state . error ) {
34
- $ ( document . body ) . scrollTop ( $ ( React . findDOMNode ( this . refs . form ) ) . offset ( ) . top ) ;
35
+ $ ( document . body ) . scrollTop ( $ ( ReactDOM . findDOMNode ( this . refs . form ) ) . offset ( ) . top ) ;
35
36
}
36
37
} ,
37
38
38
39
onSubmit ( e ) {
39
40
e . preventDefault ( ) ;
40
- var form = $ ( React . findDOMNode ( this . refs . form ) ) ;
41
+ var form = $ ( ReactDOM . findDOMNode ( this . refs . form ) ) ;
41
42
var conditions = [ ] ;
42
43
form . find ( '.rule-condition-list .rule-form' ) . each ( ( _ , el ) => {
43
44
conditions . push ( this . serializeNode ( el ) ) ;
@@ -46,8 +47,8 @@ var RuleEditor = React.createClass({
46
47
form . find ( '.rule-action-list .rule-form' ) . each ( ( _ , el ) => {
47
48
actions . push ( this . serializeNode ( el ) ) ;
48
49
} ) ;
49
- var actionMatch = $ ( React . findDOMNode ( this . refs . actionMatch ) ) . val ( ) ;
50
- var name = $ ( React . findDOMNode ( this . refs . name ) ) . val ( ) ;
50
+ var actionMatch = $ ( ReactDOM . findDOMNode ( this . refs . actionMatch ) ) . val ( ) ;
51
+ var name = $ ( ReactDOM . findDOMNode ( this . refs . name ) ) . val ( ) ;
51
52
var data = {
52
53
actionMatch : actionMatch ,
53
54
actions : actions ,
You can’t perform that action at this time.
0 commit comments