Skip to content

Commit

Permalink
0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
omersiar committed Mar 9, 2018
1 parent cd6b900 commit ec1e744
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 59 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.5.4] - 2018-03-09
#### Added
- [webui] colorize event logs based on severity.
- [webui] progress bar on saving settings.
- [dev tools] event log for websocket emulator

#### Fixed
- [firmware] Fix #75 Scan of wifi returns more columns of the same wifi.
- [webui] Fix #74 #33 completely New user with incorrect validity.
- [webui] New user with incorrect date.
- [webui] Editing user results non parsed values.

#### Changed
- [webui] event table breakpoints.

## [0.5.3] - 2018-03-08
#### Added
Expand Down
Binary file modified bin/firmware.bin
Binary file not shown.
14 changes: 7 additions & 7 deletions src/webh/esprfid.htm.gz.h

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/webh/esprfid.js.gz.h

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/webh/index.html.gz.h

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions src/websrc/esprfid.htm
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,23 @@ <h4 class="modal-title">Please wait while restoring user data...</h4>
<br>
<br>
<div class="container">
<div class="row">
<div class="row">
<br>
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please wait while your ESP restarts...</h3>
</div>
<div class="panel-body">
<div class="progress">
<div id="updateprog" class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">
0%
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please wait while your ESP restarts...</h3>
</div>
<div class="panel-body">
<div class="progress">
<div id="updateprog" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">0%
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="generalcontent">
<br>
Expand Down
2 changes: 1 addition & 1 deletion src/websrc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h4 class="modal-title">Please review changes</h4>
<h4 class="modal-title">Are you absolutely sure?</h4>
</div>
<div class="alert alert-warning">
<h4><strong>Warning!</strong> Unexpected bad things will happen if you don’t read this!</h4>
<h5><strong>Warning!</strong> Unexpected bad things will happen if you don’t read this!</h5>
</div>
<div class="modal-body">
<h5>
Expand Down
50 changes: 27 additions & 23 deletions src/websrc/js/esprfid.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var config = {
"hostnm": "esp-rfid",
"restart": "0",
"pswd": "admin",
"version": "v0.5.3"
"version": "v0.5.4"
},
"mqtt": {
"enabled": "0",
Expand All @@ -53,6 +53,7 @@ var slot = 0;
var completed = false;
var file = {};
var backupstarted = false;
var restorestarted = false;



Expand Down Expand Up @@ -187,7 +188,7 @@ function revcommit() {

function commit() {
websock.send(JSON.stringify(config));
location.reload();
inProgress();
}

function uncommited() {
Expand Down Expand Up @@ -447,6 +448,7 @@ function restore1by1(i, len, data) {
document.getElementById("dynamic").className = "progress-bar progress-bar-success";
document.getElementById("dynamic").innerHTML = "Completed";
document.getElementById("dynamic").style.width = "100%";
restorestarted = false;
completed = true;
document.getElementById("restoreclose").style.display = "block";
}
Expand All @@ -472,6 +474,7 @@ function restoreUser() {
if (x) {
recordstorestore = json.list.length;
data = json.list;
restorestarted = true;
$("#restoremodal").modal({ backdrop: "static", keyboard: false });
restore1by1(slot, recordstorestore, data);
}
Expand All @@ -491,27 +494,25 @@ function initEventTable() {
newlist[i].value = {};
newlist[i].value = dup;
var c = dup.type;
switch(c) {
switch (c) {
case "WARN":
newlist[i].options.classes = "warning";
break;
newlist[i].options.classes = "warning";
break;
case "INFO":
newlist[i].options.classes = "info";
break;
newlist[i].options.classes = "info";
break;
case "ERRO":
newlist[i].options.classes = "danger";
break;
newlist[i].options.classes = "danger";
break;
default:
break;
}
break;
}

}
console.log(newlist);
$("#dismiss").click();
jQuery(function($) {
FooTable.init("#eventtable", {
columns: [
{
columns: [{
"name": "type",
"title": "Event Type",
"type": "text"
Expand All @@ -522,8 +523,7 @@ function initEventTable() {
},
{
"name": "desc",
"title": "Description",
"breakpoints": "xs sm"
"title": "Description"
},
{
"name": "data",
Expand All @@ -544,7 +544,8 @@ function initEventTable() {
return formatted;
},
"sorted": true,
"direction": "DESC"
"direction": "DESC",
"breakpoints": "xs sm"
}
],
rows: newlist
Expand Down Expand Up @@ -633,8 +634,7 @@ function initUserTable() {
"parser": function(value) {
if (value === 1) {
return "Active";
}
else if (value === 99) {
} else if (value === 99) {
return "Admin";
} else if (value === 0) {
return "Disabled";
Expand Down Expand Up @@ -708,7 +708,9 @@ function initUserTable() {
validuntil: (new Date($editor.find("#validuntil").val()).getTime() / 1000)
};
if (row instanceof FooTable.Row) {
row.val(values);
row.delete();
values.id = uid++;
ft.rows.add(values);
} else {
values.id = uid++;
ft.rows.add(values);
Expand Down Expand Up @@ -874,8 +876,10 @@ function socketMessageListener(evt) {
}
break;
case "userfile":
if (!completed && obj.result === true) {
restore1by1(slot, recordstorestore, data);
if (restorestarted) {
if (!completed && obj.result === true) {
restore1by1(slot, recordstorestore, data);
}
}
break;

Expand Down

0 comments on commit ec1e744

Please sign in to comment.