mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
XTerm improvements.
This commit is contained in:
parent
99f8c772fd
commit
b382a8fcc0
@ -288,6 +288,7 @@
|
|||||||
<Content Include="views\messenger.handlebars" />
|
<Content Include="views\messenger.handlebars" />
|
||||||
<Content Include="views\terms-mobile.handlebars" />
|
<Content Include="views\terms-mobile.handlebars" />
|
||||||
<Content Include="views\terms.handlebars" />
|
<Content Include="views\terms.handlebars" />
|
||||||
|
<Content Include="views\xterm.handlebars" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="agents\" />
|
<Folder Include="agents\" />
|
||||||
|
@ -1793,9 +1793,9 @@ function createMeshCore(agent) {
|
|||||||
} else {
|
} else {
|
||||||
if (ws.httprequest.process == null || !ws.httprequest.process.pty) return;
|
if (ws.httprequest.process == null || !ws.httprequest.process.pty) return;
|
||||||
// ILibDuktape_ChildProcess kill doesn't support sending signals
|
// ILibDuktape_ChildProcess kill doesn't support sending signals
|
||||||
if (fs.existsSync("/bin/kill")) {
|
if (fs.existsSync('/bin/kill')) {
|
||||||
// We need to send signal to the child of the process, since the child is the shell
|
// We need to send signal to the child of the process, since the child is the shell
|
||||||
childProcess.execFile('/bin/bash', ['bash', "-c", "kill -SIGWINCH $(pgrep -P " + ws.httprequest.process.pid + ")"]);
|
childProcess.execFile('/bin/bash', ['bash', '-c', 'kill -SIGWINCH $(pgrep -P ' + ws.httprequest.process.pid + ')']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2171,24 +2171,22 @@ function InstallModules(modules, func) {
|
|||||||
var dependencies = require("./package.json").dependencies;
|
var dependencies = require("./package.json").dependencies;
|
||||||
for (var i in modules) {
|
for (var i in modules) {
|
||||||
// Modules may contain a version tag (foobar@1.0.0), remove it so the module can be found using require
|
// Modules may contain a version tag (foobar@1.0.0), remove it so the module can be found using require
|
||||||
var moduleInfo = modules[i].split("@", 2);
|
var moduleNameAndVersion = modules[i];
|
||||||
|
var moduleInfo = moduleNameAndVersion.split("@", 2);
|
||||||
var moduleName = moduleInfo[0];
|
var moduleName = moduleInfo[0];
|
||||||
var moduleVersion = moduleInfo[1];
|
var moduleVersion = moduleInfo[1];
|
||||||
try {
|
try {
|
||||||
// Does the module need a specific version?
|
// Does the module need a specific version?
|
||||||
if (moduleVersion) {
|
if (moduleVersion) {
|
||||||
if (require(`${moduleName}/package.json`).version != moduleVersion)
|
if (require(`${moduleName}/package.json`).version != moduleVersion) { throw new Error(); }
|
||||||
throw new Error();
|
} else {
|
||||||
}
|
|
||||||
else {
|
|
||||||
// For all other modules, do the check here.
|
// For all other modules, do the check here.
|
||||||
// Is the module in package.json? Install exact version.
|
// Is the module in package.json? Install exact version.
|
||||||
if (typeof dependencies[moduleName] != undefined)
|
if (typeof dependencies[moduleName] != undefined) { moduleVersion = dependencies[moduleName]; }
|
||||||
moduleVersion = dependencies[moduleName];
|
|
||||||
require(moduleName);
|
require(moduleName);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (previouslyInstalledModules[modules[i]] !== true) { missingModules.push(`${moduleName}${moduleVersion ? `@${moduleVersion}` : ""}`); }
|
if (previouslyInstalledModules[modules[i]] !== true) { missingModules.push(moduleNameAndVersion); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (missingModules.length > 0) { InstallModule(missingModules.shift(), InstallModules, modules, func); } else { func(); }
|
if (missingModules.length > 0) { InstallModule(missingModules.shift(), InstallModules, modules, func); } else { func(); }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.7-w",
|
"version": "0.4.7-x",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
@ -42,7 +42,6 @@
|
|||||||
"multiparty": "^4.2.1",
|
"multiparty": "^4.2.1",
|
||||||
"nedb": "^1.8.0",
|
"nedb": "^1.8.0",
|
||||||
"node-forge": "^0.8.4",
|
"node-forge": "^0.8.4",
|
||||||
"otplib": "^12.0.1",
|
|
||||||
"ws": "^6.2.1",
|
"ws": "^6.2.1",
|
||||||
"xmldom": "^0.1.27",
|
"xmldom": "^0.1.27",
|
||||||
"yauzl": "^2.10.0"
|
"yauzl": "^2.10.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user