mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-04 16:11:18 +03:00
Many little fixes, new MeshCommander with UI fixes.
This commit is contained in:
parent
ce5da5249b
commit
466bf6791e
@ -2069,7 +2069,7 @@ var childProcess = null;
|
|||||||
var previouslyInstalledModules = {};
|
var previouslyInstalledModules = {};
|
||||||
function mainStart() {
|
function mainStart() {
|
||||||
// Check the NodeJS is version 6 or better.
|
// 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.
|
// Check for any missing modules.
|
||||||
InstallModules(['minimist'], function () {
|
InstallModules(['minimist'], function () {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -32,6 +32,9 @@ var meshCentralSourceFiles = [
|
|||||||
"../public/player.htm"
|
"../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 CHECK ../meshcentral/views/default.handlebars
|
||||||
// node translate.json EXTRACT bob.json ../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
|
// 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);
|
InstallModules(libs, start);
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
// Load dependencies
|
||||||
jsdom = require('jsdom');
|
jsdom = require('jsdom');
|
||||||
esprima = require('esprima'); // https://www.npmjs.com/package/esprima
|
esprima = require('esprima'); // https://www.npmjs.com/package/esprima
|
||||||
if (minifyLib == 1) { minify = require('minify-js'); }
|
if (minifyLib == 1) { minify = require('minify-js'); }
|
||||||
|
Loading…
Reference in New Issue
Block a user