@@ -5,13 +5,13 @@ export class V2InstallTool extends React.Component {
5
5
constructor ( ) {
6
6
super ( ) ;
7
7
this . state = {
8
- name : " avrdude" ,
9
- version : " 6.3.0-arduino9" ,
10
- packager : " arduino" ,
11
- url : " http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino9-i686-w64-mingw32.zip" ,
12
- checksum : " SHA-256:f3c5cfa8d0b3b0caee81c5b35fb6acff89c342ef609bf4266734c6266a256d4f" ,
13
- signature : " 7628b488c7ffd21ae1ca657245751a4043c419fbab5c256a020fb53f17eb88686439f54f18e78a80b40fc2de742f79b78ed4338c959216dc8ae8279e482d2d4117eeaf34a281ce2369d1dc4356f782c0940d82610f1c892e913b637391c39e95d4d4dfe82d8dbc5350b833186a70a62c7952917481bad798a9c8b4905df91bd914fbdfd6e98ef75c8f7fb06284278da449ce05b27741d6eda156bbdb906d519ff7d7d5042379fdfc55962b3777fb9240b368552182758c297e39c72943d75d177f2dbb584b2210301250796dbe8af11f0cf06d762fe4f912294f4cdc8aff26715354cfb33010a81342fbbc438912eb424a39fc0c52a9b2bf722051a6f3b024bd" ,
14
- res : ""
8
+ name : ' avrdude' ,
9
+ version : ' 6.3.0-arduino9' ,
10
+ packager : ' arduino' ,
11
+ url : ' http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino9-i686-w64-mingw32.zip' ,
12
+ checksum : ' SHA-256:f3c5cfa8d0b3b0caee81c5b35fb6acff89c342ef609bf4266734c6266a256d4f' ,
13
+ signature : ' 7628b488c7ffd21ae1ca657245751a4043c419fbab5c256a020fb53f17eb88686439f54f18e78a80b40fc2de742f79b78ed4338c959216dc8ae8279e482d2d4117eeaf34a281ce2369d1dc4356f782c0940d82610f1c892e913b637391c39e95d4d4dfe82d8dbc5350b833186a70a62c7952917481bad798a9c8b4905df91bd914fbdfd6e98ef75c8f7fb06284278da449ce05b27741d6eda156bbdb906d519ff7d7d5042379fdfc55962b3777fb9240b368552182758c297e39c72943d75d177f2dbb584b2210301250796dbe8af11f0cf06d762fe4f912294f4cdc8aff26715354cfb33010a81342fbbc438912eb424a39fc0c52a9b2bf722051a6f3b024bd' ,
14
+ res : ''
15
15
} ;
16
16
17
17
this . handleChange = this . handleChange . bind ( this ) ;
@@ -26,7 +26,7 @@ export class V2InstallTool extends React.Component {
26
26
return ;
27
27
}
28
28
this . daemonV2 = daemonV2 ;
29
- } )
29
+ } ) ;
30
30
}
31
31
32
32
handleChange ( event ) {
@@ -36,8 +36,6 @@ export class V2InstallTool extends React.Component {
36
36
handleSubmit ( event ) {
37
37
event . preventDefault ( ) ;
38
38
39
- console . debug ( this . state )
40
-
41
39
this . daemonV2 . installTool ( {
42
40
name : this . state . name ,
43
41
version : this . state . version ,
@@ -66,32 +64,32 @@ export class V2InstallTool extends React.Component {
66
64
< form onSubmit = { this . handleSubmit } >
67
65
< label >
68
66
Name:
69
- < input type = "text" name = "name" value = { this . state . name } onChange = { this . handleChange } />
67
+ < input type = "text" name = "name" value = { this . state . name } onChange = { this . handleChange } />
70
68
</ label > < br />
71
69
< label >
72
70
Version:
73
- < input type = "text" name = "version" value = { this . state . version } onChange = { this . handleChange } />
71
+ < input type = "text" name = "version" value = { this . state . version } onChange = { this . handleChange } />
74
72
</ label > < br />
75
73
< label >
76
74
Packager:
77
- < input type = "text" name = "packager" value = { this . state . packager } onChange = { this . handleChange } />
75
+ < input type = "text" name = "packager" value = { this . state . packager } onChange = { this . handleChange } />
78
76
</ label > < br />
79
77
< label >
80
78
Url:
81
- < input type = "text" name = "url" value = { this . state . url } onChange = { this . handleChange } />
79
+ < input type = "text" name = "url" value = { this . state . url } onChange = { this . handleChange } />
82
80
</ label > < br />
83
81
< label >
84
82
Checksum:
85
- < input type = "text" name = "checksum" value = { this . state . checksum } onChange = { this . handleChange } />
83
+ < input type = "text" name = "checksum" value = { this . state . checksum } onChange = { this . handleChange } />
86
84
</ label > < br />
87
85
< label >
88
86
Signature:
89
- < input type = "text" name = "signature" value = { this . state . signature } onChange = { this . handleChange } />
87
+ < input type = "text" name = "signature" value = { this . state . signature } onChange = { this . handleChange } />
90
88
</ label > < br />
91
89
< input type = "submit" value = "Submit" />
92
90
</ form >
93
91
< textarea cols = "100" rows = "10" value = { this . state . res } readOnly > </ textarea >
94
92
</ section >
95
- )
93
+ ) ;
96
94
}
97
- }
95
+ }
0 commit comments