@@ -174,11 +174,11 @@ class App extends React.Component {
174
174
{ device . Name } - IsOpen: < span className = { device . IsOpen ? 'open' : 'closed' } >
175
175
{ device . IsOpen ? 'true' : 'false' }
176
176
</ span > - < a href = "#" onClick = { ( e ) => this . handleOpen ( e , device . Name ) } >
177
- open
177
+ open
178
178
</ a > - < a href = "#" onClick = { ( e ) => this . handleClose ( e , device . Name ) } >
179
- close
179
+ close
180
180
</ a > - < a href = "#" onClick = { ( e ) => handleBootloaderMode ( e , device . Name ) } >
181
- bootloader mode
181
+ bootloader mode
182
182
</ a >
183
183
</ li > ) ;
184
184
@@ -187,7 +187,7 @@ class App extends React.Component {
187
187
</ li > ) ;
188
188
189
189
const supportedBoards = this . state . supportedBoards . map ( ( board , i ) => < li key = { i } >
190
- { board }
190
+ { board }
191
191
</ li > ) ;
192
192
193
193
let uploadClass ;
@@ -222,18 +222,18 @@ class App extends React.Component {
222
222
< h2 > Plugin info</ h2 >
223
223
224
224
< p >
225
- Agent status: < span className = { this . state . agentStatus ? 'found' : 'not-found' } >
226
- { this . state . agentStatus ? 'Found' : 'Not found' }
225
+ Agent status: < span className = { this . state . agentStatus ? 'found' : 'not-found' } >
226
+ { this . state . agentStatus ? 'Found' : 'Not found' }
227
227
</ span >
228
228
</ p >
229
229
< p >
230
- Channel status: < span className = { this . state . channelStatus ? 'found' : 'not-found' } >
231
- { this . state . channelStatus ? 'Connected' : 'Not connected' }
230
+ Channel status: < span className = { this . state . channelStatus ? 'found' : 'not-found' } >
231
+ { this . state . channelStatus ? 'Connected' : 'Not connected' }
232
232
</ span >
233
233
</ p >
234
234
235
235
< pre >
236
- { this . state . agentInfo }
236
+ { this . state . agentInfo }
237
237
</ pre >
238
238
</ div >
239
239
@@ -242,12 +242,12 @@ class App extends React.Component {
242
242
243
243
< strong > serial:</ strong >
244
244
< ul >
245
- { listSerialDevices }
245
+ { listSerialDevices }
246
246
</ ul >
247
247
248
248
< strong > network:</ strong >
249
249
< ul >
250
- { listNetworkDevices }
250
+ { listNetworkDevices }
251
251
</ ul >
252
252
253
253
< p id = "error" > </ p >
@@ -269,20 +269,20 @@ class App extends React.Component {
269
269
< h2 > Serial Monitor</ h2 >
270
270
271
271
< form onSubmit = { this . handleSend } >
272
- < input id = "serial-input" value = { this . state . serialInput } onChange = { this . handleChangeSerial } />
272
+ < input id = "serial-input" value = { this . state . serialInput } onChange = { this . handleChangeSerial } />
273
273
< input type = "submit" value = "Send" />
274
274
</ form >
275
275
276
- < textarea id = "serial-textarea" value = { this . state . serialMonitorContent } readOnly />
276
+ < textarea id = "serial-textarea" value = { this . state . serialMonitorContent } readOnly />
277
277
</ div >
278
278
279
279
< div className = "section" >
280
280
< h2 > Upload a sample sketch on a MKR1000 at /dev/ttyACM0</ h2 >
281
- < button onClick = { handleUpload } disabled = { this . state . uploadStatus === daemon . UPLOAD_IN_PROGRESS } > Upload Sketch</ button > < br />
282
- < div > Upload status: < span className = { uploadClass } > { this . state . uploadStatus } </ span > < span > { this . state . uploadError } </ span > </ div >
281
+ < button onClick = { handleUpload } disabled = { this . state . uploadStatus === daemon . UPLOAD_IN_PROGRESS } > Upload Sketch</ button > < br />
282
+ < div > Upload status: < span className = { uploadClass } > { this . state . uploadStatus } </ span > < span > { this . state . uploadError } </ span > </ div >
283
283
</ div >
284
284
285
- { daemon . downloading ? < div className = "section" >
285
+ { daemon . downloading ? < div className = "section" >
286
286
< h2 > Download tool (not supported on Chrome OS)</ h2 >
287
287
288
288
< div >
@@ -303,19 +303,19 @@ class App extends React.Component {
303
303
</ div >
304
304
305
305
< form onSubmit = { handleDownloadTool } >
306
- < div > < input id = "toolname" placeholder = "Tool Name" /> </ div >
306
+ < div > < input id = "toolname" placeholder = "Tool Name" /> </ div >
307
307
< div > < input id = "toolversion" placeholder = "Tool Version" /> </ div >
308
308
< div > < input id = "package" placeholder = "Package" /> </ div >
309
- < div > < input id = "replacement" placeholder = "Replacement strategy" /> </ div >
309
+ < div > < input id = "replacement" placeholder = "Replacement strategy" /> </ div >
310
310
311
311
< input type = "submit" value = "Download" />
312
- < div > Download status: < span className = { downloadClass } > { this . state . downloadStatus } </ span > </ div >
312
+ < div > Download status: < span className = { downloadClass } > { this . state . downloadStatus } </ span > </ div >
313
313
</ form >
314
314
</ div > : null }
315
315
316
316
< div className = "section" >
317
317
< h2 > Errors</ h2 >
318
- < div className = "error" > { this . state . error } </ div >
318
+ < div className = "error" > { this . state . error } </ div >
319
319
</ div >
320
320
</ div >
321
321
) ;
0 commit comments