Improved the stat page
pull/145/head
Pavel Loginov 2019-09-08 12:59:25 +03:00
parent 1b743cd8f1
commit e03da32d40
8 changed files with 13 additions and 6 deletions

View File

@ -465,7 +465,7 @@ def show_backends(serv, **kwargs):
output, stderr = subprocess_execute(cmd)
ret = ""
for line in output:
if "#" in line or "stats" in line:
if "#" in line or "stats" in line or "MASTER" in line:
continue
if line != "":
back = json.dumps(line).split("\"")

View File

@ -115,7 +115,7 @@
</ul>
</nav>
<div class="copyright-menu">
<a href="https://github.com/aidaho12/haproxy-wi/" title="Github repo" target="_blank" style="color: #fff">HAproxy-WI v3.4.4.6</a>
<a href="https://github.com/aidaho12/haproxy-wi/" title="Github repo" target="_blank" style="color: #fff">HAproxy-WI v3.4.4.7</a>
<br>
<a href="https://www.patreon.com/haproxy_wi" title="Donate" target="_blank" style="color: #fff; margin-left: 30px; color: red;" class="patreon"> Patreon</a>
</div>

View File

@ -34,6 +34,7 @@
<a class="ui-button ui-widget ui-corner-all" title="Show running config" onclick="showConfig()">Show</a>
<a class="ui-button ui-widget ui-corner-all" title="Compare configs" onclick="showCompareConfigs()">Compare</a>
<a class="ui-button ui-widget ui-corner-all" title="Show map" onclick="showMap()">Map</a>
<a class="ui-button ui-widget ui-corner-all" title="View stat" onclick="openStats()">Stat</a>
{% endif %}
</form>
</p>

View File

@ -16,9 +16,14 @@
</form>
<br />
<div id="ajax" style="margin-left: 5px; margin-right: 5px;"></div>
<div id="notice" style="padding-left: 15px; font-size: 25px;">
Please choose a server
</div>
<script>
window.onload = showStats();
if (cur_url[1]) {
showStats();
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@ -26,7 +31,9 @@
$('form').append('<input type="hidden" name="serv" value='+$("#serv").val()+'>');
$('form').append('<input type="hidden" name="token" value='+$('#token').val()+'>');
$( "input[type=submit], button" ).button();
$('#notice').hide();
$('li').css('margin-top', '0');
$('li').css('width', '207px ');
$('th').css('background-color', '#f5faf4');
$('table.tbl th.pxname').css('background-color', '#5d9ceb');
@ -64,8 +71,7 @@
});
}
$('#serv').on('selectmenuchange',function() {
showStats();
showStats();
});
</script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 KiB

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 KiB

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 KiB

After

Width:  |  Height:  |  Size: 340 KiB