Many little fixes, new MeshCommander with UI fixes.

This commit is contained in:
Ylian Saint-Hilaire 2019-12-04 12:01:03 -08:00
parent 744cb4ae51
commit 1839cf5dbb
3 changed files with 6 additions and 2 deletions

View File

@ -2069,7 +2069,7 @@ var childProcess = null;
var previouslyInstalledModules = {};
function mainStart() {
// Check the NodeJS is version 6 or better.
if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 6) { console.log("MeshCentral requires Node v6.x or above, current version is " + process.version + "."); return; }
if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 6) { console.log("MeshCentral requires Node v6 or above, current version is " + process.version + "."); return; }
// Check for any missing modules.
InstallModules(['minimist'], function () {

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,9 @@ var meshCentralSourceFiles = [
"../public/player.htm"
];
// Check NodeJS version
if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 8) { console.log("Translate.js requires Node v8 or above, current version is " + process.version + "."); return; }
// node translate.json CHECK ../meshcentral/views/default.handlebars
// node translate.json EXTRACT bob.json ../meshcentral/views/default.handlebars
// node translate.js TRANSLATE fr test2.json ../meshcentral/views/default.handlebars
@ -42,6 +45,7 @@ if (minifyLib == 2) { libs.push('html-minifier'); }
InstallModules(libs, start);
function start() {
// Load dependencies
jsdom = require('jsdom');
esprima = require('esprima'); // https://www.npmjs.com/package/esprima
if (minifyLib == 1) { minify = require('minify-js'); }