mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
20 lines
452 B
JavaScript
20 lines
452 B
JavaScript
let masterPlugin;
|
|
|
|
module.exports = {
|
|
injectThis: function(x){masterPlugin = x; return this},
|
|
ui: {
|
|
slaveListing: [
|
|
{
|
|
name:"ServerMangerButton",
|
|
getHtml: ({slave}) => {
|
|
let html = "";
|
|
if(masterPlugin.serverSockets[slave.unique]){
|
|
let socket = masterPlugin.serverSockets[slave.unique];
|
|
return `<a style="margin: 5px;" href='/serverManager?instanceID=${slave.unique}'>Server manager</a>`
|
|
}
|
|
},
|
|
}
|
|
],
|
|
}
|
|
}
|