|
@ -465,7 +465,7 @@ def show_backends(serv, **kwargs):
|
||||||
output, stderr = subprocess_execute(cmd)
|
output, stderr = subprocess_execute(cmd)
|
||||||
ret = ""
|
ret = ""
|
||||||
for line in output:
|
for line in output:
|
||||||
if "#" in line or "stats" in line:
|
if "#" in line or "stats" in line or "MASTER" in line:
|
||||||
continue
|
continue
|
||||||
if line != "":
|
if line != "":
|
||||||
back = json.dumps(line).split("\"")
|
back = json.dumps(line).split("\"")
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="copyright-menu">
|
<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>
|
<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>
|
<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>
|
</div>
|
||||||
|
|
|
@ -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="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="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="Show map" onclick="showMap()">Map</a>
|
||||||
|
<a class="ui-button ui-widget ui-corner-all" title="View stat" onclick="openStats()">Stat</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -16,9 +16,14 @@
|
||||||
</form>
|
</form>
|
||||||
<br />
|
<br />
|
||||||
<div id="ajax" style="margin-left: 5px; margin-right: 5px;"></div>
|
<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>
|
<script>
|
||||||
window.onload = showStats();
|
if (cur_url[1]) {
|
||||||
|
showStats();
|
||||||
|
}
|
||||||
|
|
||||||
function sleep(ms) {
|
function sleep(ms) {
|
||||||
return new Promise(resolve => setTimeout(resolve, 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="serv" value='+$("#serv").val()+'>');
|
||||||
$('form').append('<input type="hidden" name="token" value='+$('#token').val()+'>');
|
$('form').append('<input type="hidden" name="token" value='+$('#token').val()+'>');
|
||||||
$( "input[type=submit], button" ).button();
|
$( "input[type=submit], button" ).button();
|
||||||
|
$('#notice').hide();
|
||||||
$('li').css('margin-top', '0');
|
$('li').css('margin-top', '0');
|
||||||
|
$('li').css('width', '207px ');
|
||||||
$('th').css('background-color', '#f5faf4');
|
$('th').css('background-color', '#f5faf4');
|
||||||
$('table.tbl th.pxname').css('background-color', '#5d9ceb');
|
$('table.tbl th.pxname').css('background-color', '#5d9ceb');
|
||||||
|
|
||||||
|
@ -65,7 +72,6 @@
|
||||||
}
|
}
|
||||||
$('#serv').on('selectmenuchange',function() {
|
$('#serv').on('selectmenuchange',function() {
|
||||||
showStats();
|
showStats();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Before Width: | Height: | Size: 294 KiB After Width: | Height: | Size: 375 KiB |
Before Width: | Height: | Size: 445 KiB After Width: | Height: | Size: 342 KiB |
Before Width: | Height: | Size: 655 KiB After Width: | Height: | Size: 477 KiB |
Before Width: | Height: | Size: 516 KiB After Width: | Height: | Size: 340 KiB |