Implemented server console streaming in the frontend with xterm. Added logs endpoint for servers

This commit is contained in:
2024-12-31 17:57:39 +01:00
parent 6d674e153a
commit f652945a3f
19 changed files with 419 additions and 163 deletions

View File

@@ -0,0 +1,11 @@
window.moonlightServers = {
loadAddons: function () {
if(window.moonlightServers.consoleAddonsLoaded)
return;
window.moonlightServers.consoleAddonsLoaded = true;
XtermBlazor.registerAddons({"addon-fit": new FitAddon.FitAddon()});
}
}
window.moonlightServers.consoleAddonsLoaded = false;