mirror of https://github.com/Aidaho12/haproxy-wi
parent
a9783ee58d
commit
a9dc131a84
|
@ -65,7 +65,7 @@
|
||||||
<li><a href="/app/overview.py" title="Server and service status" class="overview-link">Overview</a></li>
|
<li><a href="/app/overview.py" title="Server and service status" class="overview-link">Overview</a></li>
|
||||||
{% if '1' in user_services %}
|
{% if '1' in user_services %}
|
||||||
<li class="p_menu">
|
<li class="p_menu">
|
||||||
<a href="/app/hapservers.py" title="HAProxy servers overview" class="config-show">HAProxy</a>
|
<a href="/app/hapservers.py?service=haproxy" title="HAProxy servers overview" class="config-show">HAProxy</a>
|
||||||
<ul class="v_menu">
|
<ul class="v_menu">
|
||||||
<li><a href="/app/hapservers.py?service=haproxy" title="HAProxy servers overview" class="overview-link head-submenu">Overview</a> </li>
|
<li><a href="/app/hapservers.py?service=haproxy" title="HAProxy servers overview" class="overview-link head-submenu">Overview</a> </li>
|
||||||
<li><a href="/app/config.py?service=haproxy" title="Working with HAProxy configs" class="edit head-submenu">Configs</a></li>
|
<li><a href="/app/config.py?service=haproxy" title="Working with HAProxy configs" class="edit head-submenu">Configs</a></li>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="p_menu">
|
<li class="p_menu">
|
||||||
<a title="Monitoring tools" class="stats">Monitoring</a>
|
<a href="/app/smon.py?action=view" title="Monitoring tools" class="stats">Monitoring</a>
|
||||||
<ul class="v_menu">
|
<ul class="v_menu">
|
||||||
<li><a href="/app/smon.py?action=view" title="SMON Dashboard" class="overview-link head-submenu">SMON Dashboard</a></li>
|
<li><a href="/app/smon.py?action=view" title="SMON Dashboard" class="overview-link head-submenu">SMON Dashboard</a></li>
|
||||||
<li><a href="/app/smon.py?action=history" title="SMON History" class="lists head-submenu">SMON History</a></li>
|
<li><a href="/app/smon.py?action=history" title="SMON History" class="lists head-submenu">SMON History</a></li>
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% if role <= 2 %}
|
{% if role <= 2 %}
|
||||||
<li class="p_menu">
|
<li class="p_menu">
|
||||||
<a title="Servers manage" class="runtime">Servers</a>
|
<a href="/app/servers.py#users" title="Servers manage" class="runtime">Servers</a>
|
||||||
<ul class="v_menu">
|
<ul class="v_menu">
|
||||||
<li><a href="/app/servers.py#users" title="Servers: Manage users" class="users head-submenu">Users</a></li>
|
<li><a href="/app/servers.py#users" title="Servers: Manage users" class="users head-submenu">Users</a></li>
|
||||||
<li><a href="/app/servers.py#servers" title="Servers: Manage servers" class="runtime servers head-submenu">Servers</a></li>
|
<li><a href="/app/servers.py#servers" title="Servers: Manage servers" class="runtime servers head-submenu">Servers</a></li>
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if role <= 1 %}
|
{% if role <= 1 %}
|
||||||
<li class="p_menu">
|
<li class="p_menu">
|
||||||
<a title="Admin area" class="admin">Admin area</a>
|
<a href="/app/users.py#users" title="Admin area" class="admin">Admin area</a>
|
||||||
<ul class="v_menu">
|
<ul class="v_menu">
|
||||||
<li><a href="/app/users.py#users" title="Admin area: Manage users" class="users head-submenu">Users</a></li>
|
<li><a href="/app/users.py#users" title="Admin area: Manage users" class="users head-submenu">Users</a></li>
|
||||||
<li><a href="/app/users.py#groups" title="Admin area: Manage groups" class="group groups head-submenu">Groups</a></li>
|
<li><a href="/app/users.py#groups" title="Admin area: Manage groups" class="group groups head-submenu">Groups</a></li>
|
||||||
|
@ -298,8 +298,10 @@
|
||||||
<tr id="show-user-settings-group"></tr>
|
<tr id="show-user-settings-group"></tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div id="current-user-groups-dialog" style="display: none;">
|
<div id="statistic" style="display: none;">
|
||||||
<div id="current-user-groups-form"></div>
|
<div style="font-size: 1.1em;font-weight: bold;padding-top: 10px;">
|
||||||
|
Help us to improve Roxy-WI by sending anonymous statistics. No marketing.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'include/change_pass_form.html' %}
|
{% include 'include/change_pass_form.html' %}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1325,31 +1325,31 @@ socket.onerror = function(error) {
|
||||||
console.log(`[error] ${error.message}`);
|
console.log(`[error] ${error.message}`);
|
||||||
};
|
};
|
||||||
function changePassword() {
|
function changePassword() {
|
||||||
$( "#user-change-password-table" ).dialog({
|
$("#user-change-password-table").dialog({
|
||||||
autoOpen: true,
|
autoOpen: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
height: "auto",
|
height: "auto",
|
||||||
width: 600,
|
width: 600,
|
||||||
modal: true,
|
modal: true,
|
||||||
title: "Change password",
|
title: "Change password",
|
||||||
show: {
|
show: {
|
||||||
effect: "fade",
|
effect: "fade",
|
||||||
duration: 200
|
duration: 200
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
effect: "fade",
|
||||||
|
duration: 200
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
"Change": function () {
|
||||||
|
changeUserPasswordItOwn($(this));
|
||||||
},
|
},
|
||||||
hide: {
|
Cancel: function () {
|
||||||
effect: "fade",
|
$(this).dialog("close");
|
||||||
duration: 200
|
$('#missmatchpass').hide();
|
||||||
},
|
|
||||||
buttons: {
|
|
||||||
"Change": function() {
|
|
||||||
changeUserPasswordItOwn($(this));
|
|
||||||
},
|
|
||||||
Cancel: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
$('#missmatchpass').hide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function changeUserPasswordItOwn(d) {
|
function changeUserPasswordItOwn(d) {
|
||||||
var pass = $('#change-password').val();
|
var pass = $('#change-password').val();
|
||||||
|
@ -1526,3 +1526,42 @@ function show_version() {
|
||||||
} );
|
} );
|
||||||
NProgress.configure({showSpinner: true});
|
NProgress.configure({showSpinner: true});
|
||||||
}
|
}
|
||||||
|
function httpGetAsync() {
|
||||||
|
if (localStorage.getItem('statistic') == null) {
|
||||||
|
$("#statistic").dialog({
|
||||||
|
autoOpen: true,
|
||||||
|
resizable: false,
|
||||||
|
height: "auto",
|
||||||
|
width: 600,
|
||||||
|
modal: true,
|
||||||
|
title: "Help us to improve Roxy-WI",
|
||||||
|
show: {
|
||||||
|
effect: "fade",
|
||||||
|
duration: 200
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
effect: "fade",
|
||||||
|
duration: 200
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
"Yes": function () {
|
||||||
|
localStorage.setItem('statistic', '1');
|
||||||
|
$(this).dialog("close");
|
||||||
|
httpGetAsync();
|
||||||
|
},
|
||||||
|
"No": function () {
|
||||||
|
localStorage.setItem('statistic', '0');
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (localStorage.getItem('statistic') == 1) {
|
||||||
|
var xmlHttp = new XMLHttpRequest();
|
||||||
|
var cur_url = btoa(window.location.href.split('/').pop());
|
||||||
|
var theUrl = 'https://roxy-wi.org/page/send/' + cur_url;
|
||||||
|
xmlHttp.open("GET", theUrl, true); // true for asynchronous
|
||||||
|
xmlHttp.send(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.onload = httpGetAsync;
|
||||||
|
|
Loading…
Reference in New Issue