Skip to content

Commit 68bc1a3

Browse files
committed
Revert code formatting done by vscode
1 parent c7097cd commit 68bc1a3

File tree

2 files changed

+23
-30
lines changed

2 files changed

+23
-30
lines changed

demo/app.jsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ class App extends React.Component {
174174
{device.Name} - IsOpen: <span className={device.IsOpen ? 'open' : 'closed'}>
175175
{device.IsOpen ? 'true' : 'false'}
176176
</span> - <a href="#" onClick={(e) => this.handleOpen(e, device.Name)}>
177-
open
177+
open
178178
</a> - <a href="#" onClick={(e) => this.handleClose(e, device.Name)}>
179-
close
179+
close
180180
</a> - <a href="#" onClick={(e) => handleBootloaderMode(e, device.Name)}>
181-
bootloader mode
181+
bootloader mode
182182
</a>
183183
</li>);
184184

@@ -187,7 +187,7 @@ class App extends React.Component {
187187
</li>);
188188

189189
const supportedBoards = this.state.supportedBoards.map((board, i) => <li key={i}>
190-
{board}
190+
{ board }
191191
</li>);
192192

193193
let uploadClass;
@@ -222,18 +222,18 @@ class App extends React.Component {
222222
<h2>Plugin info</h2>
223223

224224
<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' }
227227
</span>
228228
</p>
229229
<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' }
232232
</span>
233233
</p>
234234

235235
<pre>
236-
{this.state.agentInfo}
236+
{ this.state.agentInfo }
237237
</pre>
238238
</div>
239239

@@ -242,12 +242,12 @@ class App extends React.Component {
242242

243243
<strong>serial:</strong>
244244
<ul>
245-
{listSerialDevices}
245+
{ listSerialDevices }
246246
</ul>
247247

248248
<strong>network:</strong>
249249
<ul>
250-
{listNetworkDevices}
250+
{ listNetworkDevices }
251251
</ul>
252252

253253
<p id="error"></p>
@@ -269,20 +269,20 @@ class App extends React.Component {
269269
<h2>Serial Monitor</h2>
270270

271271
<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}/>
273273
<input type="submit" value="Send" />
274274
</form>
275275

276-
<textarea id="serial-textarea" value={this.state.serialMonitorContent} readOnly />
276+
<textarea id="serial-textarea" value={ this.state.serialMonitorContent } readOnly />
277277
</div>
278278

279279
<div className="section">
280280
<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>
283283
</div>
284284

285-
{daemon.downloading ? <div className="section">
285+
{ daemon.downloading ? <div className="section">
286286
<h2>Download tool (not supported on Chrome OS)</h2>
287287

288288
<div>
@@ -303,19 +303,19 @@ class App extends React.Component {
303303
</div>
304304

305305
<form onSubmit={handleDownloadTool}>
306-
<div><input id="toolname" placeholder="Tool Name" /></div>
306+
<div><input id="toolname" placeholder="Tool Name"/></div>
307307
<div><input id="toolversion" placeholder="Tool Version" /></div>
308308
<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>
310310

311311
<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>
313313
</form>
314314
</div> : null}
315315

316316
<div className="section">
317317
<h2>Errors</h2>
318-
<div className="error">{this.state.error}</div>
318+
<div className="error">{ this.state.error }</div>
319319
</div>
320320
</div>
321321
);

demo/index.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,15 @@
2727
<style>
2828
body {
2929
color: #2c353a;
30-
font-family: Lucida Grande, Lucida, Verdana, sans-serif;
30+
font-family: Lucida Grande,Lucida,Verdana,sans-serif;
3131
padding: 15px;
3232
}
3333

34-
#error,
35-
.not-found,
36-
.closed,
37-
.error {
34+
#error, .not-found, .closed, .error {
3835
color: red
3936
}
4037

41-
.found,
42-
.open,
43-
.success {
38+
.found, .open, .success {
4439
color: green;
4540
}
4641

@@ -82,9 +77,7 @@
8277
}
8378
</style>
8479
</head>
85-
8680
<body>
8781
<div id="root"></div>
8882
</body>
89-
9083
</html>

0 commit comments

Comments
 (0)