Moved the Agents into their own repo. Kept the agent.pl just for reference

This commit is contained in:
Frank Harris 2025-09-11 13:27:32 -04:00
parent 22381be29a
commit 8680a02b13
18132 changed files with 0 additions and 2569420 deletions

View file

@ -1,14 +0,0 @@
$(document).ready(function()
{
$('.main [href="?m=mysql&p=mysql_admin"]').addClass('btn btn-sm btn-primary');
$('.main [id="mysql_root_passwd"], .main [id="db_passwd"]').attr('type', 'password');
// reveal pass on focus, hide on leave
$('.main [id="mysql_root_passwd"], .main [id="db_passwd"]').on("focus", function()
{
$(this).attr('type', 'text');
}).on("focusout", function()
{
$(this).attr('type', 'password');
});
});

View file

@ -1,17 +0,0 @@
.main .pass {
transition: all 0.3s ease-in-out;
color: transparent;
}
.dark-mode .main .pass {
text-shadow: 0 0 8px var(--white);
}
.light-mode .main .pass {
text-shadow: 0 0 8px var(--dark);
}
.main .pass:hover {
text-shadow: none;
color: inherit;
}

View file

@ -1,40 +0,0 @@
$(document).ready(function()
{
$('#servermonitor [href$="&delete"], #servermonitor [href$="&remove_db').addClass('btn btn-xs btn-danger').prepend('<i class="fas fa-trash-alt mr-1"></i>');;
$('#servermonitor [href$="&edit"], #servermonitor [href$="&edit_db_settings"]').addClass('btn btn-xs btn-primary');
$('#servermonitor [href$="&edit"], #servermonitor [href$="&edit_db_settings"]').prepend('<i class="fas fa-cogs mr-1"></i>');
$('#servermonitor [href$="&assign"]').addClass('btn btn-xs btn-success').prepend('<i class="fas fa-user-check mr-1"></i>');
$('#servermonitor .success').addClass('badge badge-success').removeClass('success');
$('#servermonitor .failure').addClass('badge badge-danger').removeClass('failure');
$('.main [id="mysql_root_passwd"]').attr('type', 'password');
// reveal pass on focus, hide on leave
$('.main [id="mysql_root_passwd"]').on("focus", function()
{
$(this).attr('type', 'text');
}).on("focusout", function()
{
$(this).attr('type', 'password');
});
// hide plaintext passwords
$('#servermonitor .expand-child').each(function()
{
var regex = new RegExp(`(\s*)<b>${langConsts['OGP_LANG_mysql_root_passwd']}:<\/b> (.*?)<br>`, "m");
var dbInfos = $(this).find('td:first-of-type');
var pass = dbInfos.html().match(regex)[2];
if(pass)
{
$(dbInfos).html(function(index,html)
{
return html.replace(regex, '<b>' + langConsts['OGP_LANG_mysql_root_passwd'] + '</b>: <span class="pass">'+pass+'</span><br>');
});
}
});
});