File tree Expand file tree Collapse file tree 11 files changed +1626
-157
lines changed Expand file tree Collapse file tree 11 files changed +1626
-157
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,10 @@ const nodes = [{
63
63
}];
64
64
65
65
class Widget extends React .Component {
66
- constructor () {
67
- super ();
68
-
69
- this .state = {
70
- checked: [],
71
- expanded: [],
72
- };
73
- }
66
+ state = {
67
+ checked: [],
68
+ expanded: [],
69
+ };
74
70
75
71
render () {
76
72
return (
Original file line number Diff line number Diff line change @@ -81,21 +81,21 @@ const nodes = [
81
81
] ;
82
82
83
83
class BasicExample extends React . Component {
84
- constructor ( ) {
85
- super ( ) ;
84
+ state = {
85
+ checked : [
86
+ '/app/Http/Controllers/WelcomeController.js' ,
87
+ '/app/Http/routes.js' ,
88
+ '/public/assets/style.css' ,
89
+ '/public/index.html' ,
90
+ '/.gitignore' ,
91
+ ] ,
92
+ expanded : [
93
+ '/app' ,
94
+ ] ,
95
+ } ;
86
96
87
- this . state = {
88
- checked : [
89
- '/app/Http/Controllers/WelcomeController.js' ,
90
- '/app/Http/routes.js' ,
91
- '/public/assets/style.css' ,
92
- '/public/index.html' ,
93
- '/.gitignore' ,
94
- ] ,
95
- expanded : [
96
- '/app' ,
97
- ] ,
98
- } ;
97
+ constructor ( props ) {
98
+ super ( props ) ;
99
99
100
100
this . onCheck = this . onCheck . bind ( this ) ;
101
101
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -82,22 +82,22 @@ const nodes = [
82
82
83
83
/* eslint-disable react/jsx-one-expression-per-line */
84
84
class ClickExample extends React . Component {
85
- constructor ( ) {
86
- super ( ) ;
85
+ state = {
86
+ checked : [
87
+ '/app/Http/Controllers/WelcomeController.js' ,
88
+ '/app/Http/routes.js' ,
89
+ '/public/assets/style.css' ,
90
+ '/public/index.html' ,
91
+ '/.gitignore' ,
92
+ ] ,
93
+ expanded : [
94
+ '/app' ,
95
+ ] ,
96
+ clicked : { } ,
97
+ } ;
87
98
88
- this . state = {
89
- checked : [
90
- '/app/Http/Controllers/WelcomeController.js' ,
91
- '/app/Http/routes.js' ,
92
- '/public/assets/style.css' ,
93
- '/public/index.html' ,
94
- '/.gitignore' ,
95
- ] ,
96
- expanded : [
97
- '/app' ,
98
- ] ,
99
- clicked : { } ,
100
- } ;
99
+ constructor ( props ) {
100
+ super ( props ) ;
101
101
102
102
this . onCheck = this . onCheck . bind ( this ) ;
103
103
this . onClick = this . onClick . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ const nodes = [
42
42
] ;
43
43
44
44
class CustomIconsExamples extends React . Component {
45
- constructor ( ) {
46
- super ( ) ;
45
+ state = {
46
+ checked : [ ] ,
47
+ expanded : [
48
+ 'Documents' ,
49
+ ] ,
50
+ } ;
47
51
48
- this . state = {
49
- checked : [ ] ,
50
- expanded : [
51
- 'Documents' ,
52
- ] ,
53
- } ;
52
+ constructor ( props ) {
53
+ super ( props ) ;
54
54
55
55
this . onCheck = this . onCheck . bind ( this ) ;
56
56
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -81,21 +81,21 @@ const nodes = [
81
81
] ;
82
82
83
83
class DisabledExample extends React . Component {
84
- constructor ( ) {
85
- super ( ) ;
84
+ state = {
85
+ checked : [
86
+ '/app/Http/Controllers/WelcomeController.js' ,
87
+ '/app/Http/routes.js' ,
88
+ '/public/assets/style.css' ,
89
+ '/public/index.html' ,
90
+ '/.gitignore' ,
91
+ ] ,
92
+ expanded : [
93
+ '/app' ,
94
+ ] ,
95
+ } ;
86
96
87
- this . state = {
88
- checked : [
89
- '/app/Http/Controllers/WelcomeController.js' ,
90
- '/app/Http/routes.js' ,
91
- '/public/assets/style.css' ,
92
- '/public/index.html' ,
93
- '/.gitignore' ,
94
- ] ,
95
- expanded : [
96
- '/app' ,
97
- ] ,
98
- } ;
97
+ constructor ( props ) {
98
+ super ( props ) ;
99
99
100
100
this . onCheck = this . onCheck . bind ( this ) ;
101
101
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -81,21 +81,21 @@ const nodes = [
81
81
] ;
82
82
83
83
class ExpandAllExample extends React . Component {
84
- constructor ( ) {
85
- super ( ) ;
84
+ state = {
85
+ checked : [
86
+ '/app/Http/Controllers/WelcomeController.js' ,
87
+ '/app/Http/routes.js' ,
88
+ '/public/assets/style.css' ,
89
+ '/public/index.html' ,
90
+ '/.gitignore' ,
91
+ ] ,
92
+ expanded : [
93
+ '/app' ,
94
+ ] ,
95
+ } ;
86
96
87
- this . state = {
88
- checked : [
89
- '/app/Http/Controllers/WelcomeController.js' ,
90
- '/app/Http/routes.js' ,
91
- '/public/assets/style.css' ,
92
- '/public/index.html' ,
93
- '/.gitignore' ,
94
- ] ,
95
- expanded : [
96
- '/app' ,
97
- ] ,
98
- } ;
97
+ constructor ( props ) {
98
+ super ( props ) ;
99
99
100
100
this . onCheck = this . onCheck . bind ( this ) ;
101
101
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -85,23 +85,23 @@ const nodes = [
85
85
] ;
86
86
87
87
class HiddenCheckboxesExample extends React . Component {
88
- constructor ( ) {
89
- super ( ) ;
88
+ state = {
89
+ checked : [
90
+ 'persian' ,
91
+ 'spqr' ,
92
+ 'byzantine' ,
93
+ 'holy-roman' ,
94
+ 'inca' ,
95
+ ] ,
96
+ expanded : [
97
+ 'favorite-empires' ,
98
+ 'classical-era' ,
99
+ 'medieval-era' ,
100
+ ] ,
101
+ } ;
90
102
91
- this . state = {
92
- checked : [
93
- 'persian' ,
94
- 'spqr' ,
95
- 'byzantine' ,
96
- 'holy-roman' ,
97
- 'inca' ,
98
- ] ,
99
- expanded : [
100
- 'favorite-empires' ,
101
- 'classical-era' ,
102
- 'medieval-era' ,
103
- ] ,
104
- } ;
103
+ constructor ( props ) {
104
+ super ( props ) ;
105
105
106
106
this . onCheck = this . onCheck . bind ( this ) ;
107
107
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ const nodes = [{
27
27
} ] ;
28
28
29
29
class LargeDataExample extends React . Component {
30
- constructor ( ) {
31
- super ( ) ;
30
+ state = {
31
+ checked : [ ] ,
32
+ expanded : [ ] ,
33
+ } ;
32
34
33
- this . state = {
34
- checked : [ ] ,
35
- expanded : [ ] ,
36
- } ;
35
+ constructor ( props ) {
36
+ super ( props ) ;
37
37
38
38
this . onCheck = this . onCheck . bind ( this ) ;
39
39
this . onExpand = this . onExpand . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -81,22 +81,22 @@ const nodes = [
81
81
] ;
82
82
83
83
class NoCascadeExample extends React . Component {
84
- constructor ( ) {
85
- super ( ) ;
84
+ state = {
85
+ checked : [
86
+ '/app/Http/Controllers/WelcomeController.js' ,
87
+ '/app/Http/routes.js' ,
88
+ '/public/assets/style.css' ,
89
+ '/public/index.html' ,
90
+ '/.gitignore' ,
91
+ ] ,
92
+ expanded : [
93
+ '/app' ,
94
+ '/app/Http' ,
95
+ ] ,
96
+ } ;
86
97
87
- this . state = {
88
- checked : [
89
- '/app/Http/Controllers/WelcomeController.js' ,
90
- '/app/Http/routes.js' ,
91
- '/public/assets/style.css' ,
92
- '/public/index.html' ,
93
- '/.gitignore' ,
94
- ] ,
95
- expanded : [
96
- '/app' ,
97
- '/app/Http' ,
98
- ] ,
99
- } ;
98
+ constructor ( props ) {
99
+ super ( props ) ;
100
100
101
101
this . onCheck = this . onCheck . bind ( this ) ;
102
102
this . onExpand = this . onExpand . bind ( this ) ;
You can’t perform that action at this time.
0 commit comments