mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
Remove unused files
Remove left over files that are no longer in use.
This commit is contained in:
1 parent
9a4a535add
commit
f05100c94d
9 files changed
-114
No files matched your search
@@ -1,6 +1,5 @@
|
||||
|
||||
(function (){
|
||||
ensureSetting("Display offline slaves", "boolean", false);
|
||||
ensureSetting("Periodically update storage screen", "boolean", true);
|
||||
}())
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
|
||||
// ask master for slaves and render them nicely on a page with production graphs
|
||||
setTimeout(function() {
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var slaveData = JSON.parse(xmlhttp.responseText);
|
||||
var HTML = "<p>Current connections:</p>"
|
||||
for(i=0;i<Object.keys(slaveData).length;i++){
|
||||
var key = Object.keys(slaveData)[i]
|
||||
// Only show slaves connected last 2 minutes (depending on setting now)
|
||||
if(JSON.parse(localStorage.settings)["Display offline slaves"]) var displayOffline = true;
|
||||
if(Date.now() - slaveData[key].time < 120000 || displayOffline) {
|
||||
let seenDate = moment(Number(slaveData[key].time)).format('DD.MM.YY, hh:mm:ss')
|
||||
HTML += "<div class='slaveBox'>";
|
||||
HTML += "<a href='nodeDetails?instanceID="+slaveData[key].unique+"'><h2>" + slaveData[key].instanceName + "</h2></a><p>ID: " + slaveData[key].unique + "</p><p>Last seen: "+seenDate+"</p><p>Online players: "+slaveData[key].playerCount+"</p><p>IP: "+slaveData[key].publicIP +":"+ slaveData[key].serverPort+"</p>"
|
||||
HTML += "<p>Host: "+slaveData[key].mac+"</p>";
|
||||
HTML += "</div>";
|
||||
}
|
||||
}
|
||||
document.querySelector("#slaves > #display").innerHTML = HTML
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "api/slaves", true);
|
||||
xmlhttp.send();
|
||||
}, 0)
|
||||
Reference in new issue
Block a user