Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Diagramação de página e novo layout de debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmfc committed Mar 2, 2017
1 parent 52319b4 commit 2c66fe1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
Empty file added HELP.md
Empty file.
18 changes: 9 additions & 9 deletions src/DebugController.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ function findPlat() {
$('#ports').empty();
ports.forEach(function(port) {
counter++;
$('#ports').append('<div class="ui divider"></div>');
$('#ports').append('<p>comName: ' + port.comName + ' </p>');
$('#ports').append('<p>manufacturer: ' + port.manufacturer + ' </p>');
$('#ports').append('<p>serialNumber: ' + port.serialNumber + ' </p>');
$('#ports').append('<p>pnpId: ' + port.pnpId + ' </p>');
$('#ports').append('<p>locationId: ' + port.locationId + ' </p>');
$('#ports').append('<p>vendorId: ' + port.vendorId + ' </p>');
$('#ports').append('<p>productId: ' + port.productId + ' </p>');

$('#ports').append('<div class="eight wide column"><div class="ui raised segments" id="portN' + counter + '"></div></div>');
$('#portN' + counter).append('<div class="ui segment" id="namePortN' + counter + '"><p>manufacturer: ' + port.manufacturer + ' </p></div>');
$('#portN' + counter).append('<div class="ui blue secondary segment"><p>comName: ' + port.comName + ' </p></div>');
$('#portN' + counter).append('<div class="ui secondary segment"><p>serialNumber: ' + port.serialNumber + ' </p></div>');
$('#portN' + counter).append('<div class="ui secondary segment"><p>pnpId: ' + port.pnpId + ' </p></div>');
$('#portN' + counter).append('<div class="ui secondary segment"><p>locationId: ' + port.locationId + ' </p></div>');
$('#portN' + counter).append('<div class="ui secondary segment"><p>vendorId: ' + port.vendorId + ' </p></div>');
$('#portN' + counter).append('<div class="ui secondary segment"><p>productId: ' + port.productId + ' </p></div>');

if (port.manufacturer.indexOf('Arduino') !== -1 && !found) {
connect(port.comName);
found = true;
$('#namePortN' + counter).addClass("blue message");
}
if (counter === ports.length && !found) {
btERR('Porta não encontrada!');
Expand Down
2 changes: 1 addition & 1 deletion ui/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

.main.container {
margin-top: 7em;
margin-top: 20px;
}

.ui.menu .item {
Expand Down
10 changes: 8 additions & 2 deletions ui/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.main.container {
margin-top: 7em;
margin-top: 20px;
}

.ui.menu .item {
Expand Down Expand Up @@ -57,6 +57,12 @@
<!-- /MENU -->
<div class="ui main container">
<div class="ui right aligned container">
<a href="./debug.html">
<button class="ui labeled icon button">
<i class="refresh icon"></i>
Reset
</button>
</a>
<div class="ui labeled button" tabindex="0" id="bt" data-tooltip="Não suba na plataforma" data-position="left center">
<div class="ui button" id="label">
<i class="usb icon" id="ico"></i>
Expand Down Expand Up @@ -89,7 +95,7 @@
</tbody>
</table>
<h4 id="raw"></h4>
<div id="ports">
<div class="ui grid" id="ports">
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion ui/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

.main.container {
margin-top: 7em;
margin-top: 20px;
}

.ui.menu .item {
Expand Down

0 comments on commit 2c66fe1

Please sign in to comment.