This commit is contained in:
AuroraLS3 2021-09-18 19:53:28 +00:00
parent 748920e5c3
commit 99ddd90df8
7 changed files with 16 additions and 14 deletions

View File

@ -339,7 +339,7 @@ function playersChart(id, playersOnlineSeries, sel) {
type: s.type.spline, type: s.type.spline,
tooltip: s.tooltip.zeroDecimals, tooltip: s.tooltip.zeroDecimals,
data: averageGroupPoints(groupByInterval, minDate), data: averageGroupPoints(groupByInterval, minDate),
color: "#1E90FF", color: "#02458d",
yAxis: 0 yAxis: 0
}; };
} }
@ -360,7 +360,7 @@ function playersChart(id, playersOnlineSeries, sel) {
type: s.type.spline, type: s.type.spline,
tooltip: s.tooltip.zeroDecimals, tooltip: s.tooltip.zeroDecimals,
data: [], data: [],
color: "#1E90FF", color: "#02458d",
yAxis: 0 yAxis: 0
}; };
@ -373,18 +373,20 @@ function playersChart(id, playersOnlineSeries, sel) {
softMax: 2, softMax: 2,
softMin: 0 softMin: 0
}, },
/* Average online players graph Disabled
xAxis: { xAxis: {
events: { events: {
afterSetExtremes: updateAveragePlayers afterSetExtremes: updateAveragePlayers
} }
}, },
*/
title: {text: ''}, title: {text: ''},
plotOptions: { plotOptions: {
areaspline: { areaspline: {
fillOpacity: 0.4 fillOpacity: 0.4
} }
}, },
series: [playersOnlineSeries, emptyAveragePlayersSeries] series: [playersOnlineSeries, /*emptyAveragePlayersSeries*/]
})); }));
} }

View File

@ -8,14 +8,14 @@ function createErrorAccordionTitle(i, errorLog) {
let style = 'bg-amber-outline'; let style = 'bg-amber-outline';
const tagLine = errorLog.contents[0]; const tagLine = errorLog.contents[0];
return `<tr id="error_h_${i}" aria-controls="error_t_${i}" aria-expanded="false" return `<tr id="error_h_${i}" aria-controls="error_t_${i}" aria-expanded="false"
class="clickable collapsed ${style}" data-target="#error_t_${i}" data-toggle="collapse"> class="clickable collapsed ${style}" data-bs-target="#error_t_${i}" data-bs-toggle="collapse">
<td>${errorLog.fileName}</td> <td>${errorLog.fileName}</td>
<td>${tagLine}</td> <td>${tagLine}</td>
</tr>` </tr>`
} }
function createErrorAccordionBody(i, errorLog) { function createErrorAccordionBody(i, errorLog) {
return `<tr class="collapse" data-parent="#tableAccordion" id="error_t_${i}"> return `<tr class="collapse" data-bs-parent="#tableAccordion" id="error_t_${i}">
<td colspan="2"> <td colspan="2">
<pre class="pre-scrollable" style="overflow-x: scroll">${errorLog.contents.join('\n')}</pre> <pre class="pre-scrollable" style="overflow-x: scroll">${errorLog.contents.join('\n')}</pre>
</td> </td>

View File

@ -210,9 +210,9 @@ function createserverAccordionTitle(i, server) {
// Lowercase due to locale translation: Server // Lowercase due to locale translation: Server
function createserverAccordionBody(i, server) { function createserverAccordionBody(i, server) {
return `<tr class="collapse" data-parent="#tableSAccordion" id="server_t_` + i + `">` + return `<tr class="collapse" data-bs-parent="#tableSAccordion" id="server_t_` + i + `">` +
`<td colspan="4">` + `<td colspan="4">` +
`<div class="collapse row" data-parent="#tableSAccordion" id="server_t_` + i + `">` + `<div class="collapse row" data-bs-parent="#tableSAccordion" id="server_t_` + i + `">` +
`<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">` + `<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">` +
(server.operator ? `<p><i class="col-blue fab fa-fw fa-superpowers"></i> Operator</p>` : ``) + (server.operator ? `<p><i class="col-blue fab fa-fw fa-superpowers"></i> Operator</p>` : ``) +
(server.banned ? `<p><i class="col-red fas fa-fw fa-gavel"></i> Banned</p>` : ``) + (server.banned ? `<p><i class="col-red fas fa-fw fa-gavel"></i> Banned</p>` : ``) +

View File

@ -75,9 +75,9 @@ function createAccordionTitle(i, session) {
} }
function createAccordionBody(i, session) { function createAccordionBody(i, session) {
return `<tr class="collapse" data-parent="#tableAccordion" id="session_t_${i}"> return `<tr class="collapse" data-bs-parent="#tableAccordion" id="session_t_${i}">
<td colspan="4"> <td colspan="4">
<div class="collapse row" data-parent="#tableAccordion" id="session_t_${i}"> <div class="collapse row" data-bs-parent="#tableAccordion" id="session_t_${i}">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<p><i class="col-teal far fa-fw fa-clock"></i> Ended<span class="float-end"><b>${session.end}</b></span></p> <p><i class="col-teal far fa-fw fa-clock"></i> Ended<span class="float-end"><b>${session.end}</b></span></p>
<p><i class="col-green far fa-fw fa-clock"></i> Length<span class="float-end"><b>${session.length}</b></span></p> <p><i class="col-green far fa-fw fa-clock"></i> Length<span class="float-end"><b>${session.length}</b></span></p>

View File

@ -67,7 +67,7 @@
<i class="fas fa-fw fa-server"></i> <i class="fas fa-fw fa-server"></i>
<span>Servers</span> <span>Servers</span>
</a> </a>
<div aria-labelledby="headingPages" class="collapse" data-parent="#accordionSidebar" id="serverPages"> <div aria-labelledby="headingPages" class="collapse" data-bs-parent="#accordionSidebar" id="serverPages">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item nav-button" href="#tab-servers"><i <a class="collapse-item nav-button" href="#tab-servers"><i
class="fas fa-fw fa-network-wired"></i> class="fas fa-fw fa-network-wired"></i>
@ -92,7 +92,7 @@
<i class="fas fa-fw fa-users"></i> <i class="fas fa-fw fa-users"></i>
<span>Playerbase</span> <span>Playerbase</span>
</a> </a>
<div aria-labelledby="headingPages" class="collapse" data-parent="#accordionSidebar" <div aria-labelledby="headingPages" class="collapse" data-bs-parent="#accordionSidebar"
id="playerbasePages"> id="playerbasePages">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item nav-button" href="#tab-playerbase-overview"><i <a class="collapse-item nav-button" href="#tab-playerbase-overview"><i

View File

@ -86,7 +86,7 @@
<i class="fas fa-fw fa-cubes"></i> <i class="fas fa-fw fa-cubes"></i>
<span>Plugins</span> <span>Plugins</span>
</a> </a>
<div aria-labelledby="headingPages" class="collapse" data-parent="#accordionSidebar" id="pluginsPages"> <div aria-labelledby="headingPages" class="collapse" data-bs-parent="#accordionSidebar" id="pluginsPages">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
${navPluginsTabs} ${navPluginsTabs}
</div> </div>

View File

@ -67,7 +67,7 @@
<i class="fas fa-fw fa-chart-area"></i> <i class="fas fa-fw fa-chart-area"></i>
<span>Online Activity</span> <span>Online Activity</span>
</a> </a>
<div aria-labelledby="headingPages" class="collapse" data-parent="#accordionSidebar" <div aria-labelledby="headingPages" class="collapse" data-bs-parent="#accordionSidebar"
id="onlineActivityPages"> id="onlineActivityPages">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item nav-button" href="#tab-online-activity-overview"><i <a class="collapse-item nav-button" href="#tab-online-activity-overview"><i
@ -90,7 +90,7 @@
<i class="fas fa-fw fa-users"></i> <i class="fas fa-fw fa-users"></i>
<span>Playerbase</span> <span>Playerbase</span>
</a> </a>
<div aria-labelledby="headingPages" class="collapse" data-parent="#accordionSidebar" <div aria-labelledby="headingPages" class="collapse" data-bs-parent="#accordionSidebar"
id="playerbasePages"> id="playerbasePages">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item nav-button" href="#tab-playerbase-overview"><i <a class="collapse-item nav-button" href="#tab-playerbase-overview"><i