No changes

This commit is contained in:
Frank Harris 2025-09-11 13:29:15 -04:00
parent 8680a02b13
commit b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions

View file

@ -0,0 +1,247 @@
b {
font-weight: normal !important;
}
.progress {
background: none !important;
height: auto !important;
display: block;
margin-bottom: 0px !important;
box-shadow: none !important;
}
.progress-bar {
width: 100% !important;
background: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
.progress-bar > canvas
{
height: 60px !important;
width: 60px !important;
}
.load-container {
margin-bottom: 5px;
display: inline-block;
margin: 0px 5px 5px;
}
#refreshed-0 > #column4:nth-child(2) .load-container {
display: inline-block;
width: 24%;
}
.load-container b {
display: block;
}
h0 {
clear: both;
display: inline-block;
font-size: 1.5rem;
background-color: rgba(25,151,198,0.5);
padding: 10px;
margin: 40px 0px 20px;
width: 100%;
border-bottom: none;
}
.one_fourth {
width: 25%;
float: left;
}
.one_two {
width: 50%;
float: left;
}
.one_fourth#column3 {
padding-right: 0px;
}
.main .column {
padding-left: 0px !important;
min-height: 150px;
}
.column .placeholder {
background-color: rgba(26, 28, 34, 0.4);
border: 2px dotted rgba(26, 28, 34, 0.8);
height: 100px !important;
border-radius: 5px;
margin-bottom: 10px;
}
.column .placeholder:after {
content: "\f047";
color: rgba(255, 255, 255, 0.3);
text-transform: uppercase;
display: block;
text-align: center;
line-height: 90px;
font-family: "FontAwesome";
font-size: 40px;
}
@media only screen and (max-width: 991px){
#column4 {
float: none !important;
width: 100% !important;
margin-left: 0px !important;
}
.col-md-3,
.col-md-6,
.column.ui-sortable
{
padding-left: 0px !important;
padding-right: 0px !important;
}
#refreshed-0 > #column4:first-of-type {
margin-left: 0px !important;
}
}
.bloc {
background-color: rgba(26, 28, 34, 0.3);
border-radius: 4px;
border: 1px solid rgba(35, 40, 46, 0.8);
margin-bottom: 10px;
}
#column4 .bloc {
min-height: 130px;
}
@media only screen and (min-width: 992px){
#column4 > .dragbox,
#column4 > .bloc {
margin-bottom: 0px !important;
}
}
.dragbox {
margin-bottom: 10px;
}
.dragbox-content {
display: inline-block;
width: 100%;
}
[id^="refreshed-"] .dragbox-content {
text-align: center;
}
[id^="refreshed-"] pre {
text-align: left;
}
.dragbox h4 .configure {
width: 30px;
height: 30px;
float: right;
opacity: 0.8;
}
.dragbox h4 .configure:before {
font-family: 'FontAwesome';
content: "\f063";
}
.dragbox > .ui-sortable:hover,
.dragbox > .ui-sortable-handle:hover
{
cursor: move;
}
.online_servers {
color: #1997c6;
border-spacing: 0px 3px;
border-collapse: separate;
background: transparent;
}
.online_servers .name img {
margin-right: 4px;
}
.online_servers td {
border-radius: 4px;
padding: 3px 10px !important;
border-top: none !important;
}
.online_servers a
{
color: #fff;
}
.online_servers a:hover
{
color: rgba(255, 255, 255, 0.6);
}
.online_servers [id^=refreshed]
{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.online_servers [id^=refreshed] div
{
display: inline-block;
white-space: nowrap;
}
.online_servers div
{
display: inline-block;
}
.online_servers #gamelink
{
float: right;
}
/* *** SYSTEM UPTIME *** */
#refreshed-0 > #column4:nth-child(1){
}
/* *** CPU USAGE *** */
#refreshed-0 > #column4:nth-child(2){
}
/* *** RAM USAGE *** */
#refreshed-0 > #column4:nth-child(3){
}
/* *** STORAGE SPACE *** */
#refreshed-0 > #column4:nth-child(4){
}
#item5 img,
#item1 img,
#item4 img {
display: none;
}
#item5 > div:before,
#item1 > div:before,
#item4 > div:before {
display: inline-block;
font-family: "FontAwesome";
font-size: 36px;
float: right;
height: 36px;
margin: 0px 0px 5px 5px;
}
#item5 > div:before {
content: "\f29c";
}
#item1 > div:before {
content: "\f108";
}
#item4 > div:before {
content: "\f15c";
}
.online_servers img {
display: none;
}
.online_servers .name a:before {
display: inline-block !important;
margin-right: 5px;
font-size: 75%;
content: "\f002";
}
.currently-online > tbody > tr:first-of-type > td {
font-weight: 400 !important;
text-transform: uppercase !important;
background-color: rgba(26, 28, 34, 0.5);
}
.online_servers + .pagination {
margin-bottom: 0px !important;
}

View file

@ -0,0 +1,126 @@
$(document).ready(function() {
if($('h0').length>1){
$('h0:first').css('margin-top', '5px').css('margin-bottom', '0px');
}
$('.online_servers td').each(function(){
$(this).addClass('btn-primary').html($(this).children());
});
$('.one_fourth').addClass('col-xs-12').addClass('col-md-3');
$('.one_two').addClass('col-xs-12').addClass('col-md-6');
$('.dragbox-content img').remove();
$('.bloc > div > br').remove();
// Call Radial Indicator and Init Mod Function
var url = "themes/MasterControlProgram/js/radialIndicator.js";
$.getScript( url, function() {
animateProgressBars();
});
// Remove not wanted Tags in Containers every time when DOM is modified
$('[id^=refreshed-]').bind("DOMSubtreeModified",function(){
$('.currently-online').addClass('table').addClass('table-striped');
$('.currently-online td').attr('style','');
$('[id^=refreshed-] > br').remove();
$('[id^=refreshed-] .load-container > br').remove();
$('.dragbox-content .load-container > br').remove();
$(".dragbox-content .load-container").each(function(){
if($(this).find('.progress-wrap').length < 1){
$(this).find('.progress').wrapAll('<div class="progress-wrap"></div>');
}
});
});
// Dashboard Row Config
$.ajax({
type: "POST",
url: "themes/MasterControlProgram/conf/sbs.conf",
contentType: "application/json; charset=utf-8",
dataType: "json",
beforeSend: function( xhr ) {
xhr.overrideMimeType('application/json');
},
success: function(json) {
if(json['dashboard_rows']=="full_rows"){
$('.main .column').removeClassStartingWith('col-md').css("padding-right", "0px");
}
if(json['dashboard_rows']=="remove_one"){
$('.main .column').removeClassStartingWith('col-md').addClass('col-md-6');
$('.main #column3').css("padding-right", "0px");
$('.main #column1').css("display", "none");
}
if(json['dashboard_rows']=="remove_one_two"){
$('.main .column').removeClassStartingWith('col-md');
$('.main #column3').css("padding-right", "0px");
$('.main #column1, .main #column2').css("display", "none");
}
if(json['dashboard_rows']=="remove_one_three"){
$('.main .column').removeClassStartingWith('col-md');
$('.main #column2').css("padding-right", "0px");
$('.main #column1, .main #column3').css("display", "none");
}
}
});
});
function animateProgressBars(){
// Init Radial Indicator for each Progress Bar
$(".progress").addClass('inline-block');
$(".progress-bar").each(function() {
if($(this).children().length < 1){
var value = $(this).attr("data");
$(this).radialIndicator({
barColor: '#1997c6',
percentage: true,
roundCorner: true,
initValue: value
});
}
});
// Replace all <b> Tags with a Container in Server Status Section
$('.progress').each(function(){
var dragbox = $(this).parents('.dragbox-content').first();
$(dragbox).children('b').each(function() {
$('<cutter></cutter>').insertBefore(this);
});
$(dragbox).find('cutter').each(function() {
var $set = $();
var nxt = this.nextSibling;
while (nxt) {
if (!$(nxt).is('cutter')) {
$set.push(nxt);
nxt = nxt.nextSibling;
} else break;
}
$set.wrapAll('<div class="load-container"/>');
});
$(dragbox).find('cutter').remove();
});
/* *** Only Storage *** */
$('#column4:nth-child(4) > .dragbox > .load-container').addClass('storage');
$('.storage br:first-of-type').replaceWith(' / ');
/* *** Only CPU Cutting *** */
$('#column4:nth-child(2) > .dragbox > .load-container').addClass('cpu_load');
$('.cpu_load br').remove();
$('.cpu_load').each(function() {
var this_b = $(this).children('b');
if($(this_b).text().indexOf(':') >= 0){
$(this_b).text($(this_b).html().split(':')[0]);
}
});
}
$.fn.removeClassStartingWith = function (filter) {
$(this).removeClass(function (index, className) {
return (className.match(new RegExp("\\S*" + filter + "\\S*", 'g')) || []).join(' ')
});
return this;
};