mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
[big change] Added serverManager plugin
This commit is contained in:
1 parent
852311e84c
commit
e2566d2d1c
9 files changed
+498
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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>`
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user