No changes
This commit is contained in:
parent
8680a02b13
commit
b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions
47
ControlPanel/themes/AdminLTE/modules/cron/cron.css
Normal file
47
ControlPanel/themes/AdminLTE/modules/cron/cron.css
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
.content-wrapper .log .table:first-of-type {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.content-wrapper .log b table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content-wrapper .log b table td:not(:last-of-type){
|
||||
width: 60px !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-wrapper input.form-control:not([name="command"]) {
|
||||
width: 46px;
|
||||
min-width: 46px;
|
||||
}
|
||||
|
||||
.content-wrapper [id^="refreshed"] td:not(:last-of-type) {
|
||||
width: 58px;
|
||||
min-width: 58px;
|
||||
}
|
||||
|
||||
.content-wrapper select[name="action"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.content-wrapper .log {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.content-wrapper .center td:not(:nth-last-child(1)):not(:nth-last-child(2)) {
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
/* table responsive */
|
||||
.content-wrapper [id^="refreshed"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.content-wrapper select[name="homeid_ip_port"],
|
||||
.content-wrapper input[name="command"] {
|
||||
min-width: 200px;
|
||||
}
|
||||
49
ControlPanel/themes/AdminLTE/modules/cron/cron.js
Normal file
49
ControlPanel/themes/AdminLTE/modules/cron/cron.js
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
$(document).ready(function()
|
||||
{
|
||||
$('.content-wrapper [href="?m=administration&p=main"], .main [href="javascript:history.go(-1)"], .main [href="home.php?m=cron&p=cron"], .main a[href="home.php?m=cron&p=user_cron"]').addClass('btn btn-sm btn-primary');
|
||||
$('.content-wrapper input[name="removeJob"]').removeClass('btn-primary').addClass('btn-danger');
|
||||
$('.content-wrapper a[href="home.php?m=cron&p=user_cron"]').removeClass('btn-primary').addClass('btn-secondary').prepend('<i class="fas fa-angle-double-left mr-1"></i>');
|
||||
|
||||
$('.content-wrapper .hundred td[colspan="6"]').attr('colspan',8);
|
||||
$('.content-wrapper th:last-child').attr('colspan', 2);
|
||||
});
|
||||
|
||||
$(window).load(function()
|
||||
{
|
||||
// check if cron is the updateserverstats cron
|
||||
$('.content-wrapper input[name="command"]').each(function()
|
||||
{
|
||||
if($(this).val().toLowerCase().indexOf('adminlte/dist/php/settings.php')>=0)
|
||||
{
|
||||
// wrap theme cron input into input-group
|
||||
$(this).wrap('\
|
||||
<div class="input-group mb-2 mr-sm-2">\
|
||||
<div class="input-group-prepend">\
|
||||
<div class="input-group-text border-danger">Theme Cron</div>\
|
||||
</div>\
|
||||
</div>\
|
||||
');
|
||||
|
||||
// colorize all fields
|
||||
$(this).closest('tr').find('.form-control').addClass('border-danger');
|
||||
}
|
||||
});
|
||||
|
||||
// wrap scheduled jobs into separate card
|
||||
var doWrap = false;
|
||||
$('.main > *').each(function(index)
|
||||
{
|
||||
if($(this).is('h2'))
|
||||
{
|
||||
doWrap = true;
|
||||
$('.content .row > div').append('<div class="card"><div class="card-header"><h3 class="card-title">'+$(this).text()+'</h3></div><div class="card-body"></div></div>');
|
||||
$(this).remove();
|
||||
}else
|
||||
{
|
||||
if(doWrap)
|
||||
{
|
||||
$('.content .card-body:not(.main)').append($(this));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
47
ControlPanel/themes/AdminLTE/modules/cron/user_cron.css
Normal file
47
ControlPanel/themes/AdminLTE/modules/cron/user_cron.css
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
.content-wrapper .log .table:first-of-type {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.content-wrapper .log b table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content-wrapper .log b table td:not(:last-of-type){
|
||||
width: 60px !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-wrapper input.form-control:not([name="command"]) {
|
||||
width: 46px;
|
||||
min-width: 46px;
|
||||
}
|
||||
|
||||
.content-wrapper [id^="refreshed"] td:not(:last-of-type) {
|
||||
width: 58px;
|
||||
min-width: 58px;
|
||||
}
|
||||
|
||||
.content-wrapper select[name="action"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.content-wrapper .log {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.content-wrapper .center td:not(:nth-last-child(1)):not(:nth-last-child(2)) {
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
/* table responsive */
|
||||
.content-wrapper [id^="refreshed"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.content-wrapper select[name="homeid_ip_port"],
|
||||
.content-wrapper input[name="command"] {
|
||||
min-width: 200px;
|
||||
}
|
||||
28
ControlPanel/themes/AdminLTE/modules/cron/user_cron.js
Normal file
28
ControlPanel/themes/AdminLTE/modules/cron/user_cron.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
$(document).ready(function()
|
||||
{
|
||||
$('.content-wrapper [href="home.php?m=cron&p=cron"]').addClass('btn btn-sm btn-warning').prepend('<i class="fas fa-crown mr-1"></i>');
|
||||
$('.content-wrapper [href="?m=administration&p=main"], .main [href="javascript:history.go(-1)"]').addClass('btn btn-sm btn-primary');
|
||||
$('.content-wrapper input[name="removeJob"]').removeClass('btn-primary').addClass('btn-danger');
|
||||
|
||||
$('.content-wrapper th:last-child').attr('colspan', 2);
|
||||
});
|
||||
|
||||
$(window).load(function()
|
||||
{
|
||||
var doWrap = false;
|
||||
$('.main > *').each(function(index)
|
||||
{
|
||||
if($(this).is('h2'))
|
||||
{
|
||||
doWrap = true;
|
||||
$('.content .row > div').append('<div class="card"><div class="card-header"><h3 class="card-title">'+$(this).text()+'</h3></div><div class="card-body"></div></div>');
|
||||
$(this).remove();
|
||||
}else
|
||||
{
|
||||
if(doWrap)
|
||||
{
|
||||
$('.content .card-body:not(.main)').append($(this));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue