Added server support for running uncompiled machines
This commit is contained in:
parent
7b160f296b
commit
c5d9b7dfcc
22 changed files with 2939 additions and 2753 deletions
|
|
@ -1738,14 +1738,10 @@ HTMLOut.prototype.getRandomString = function(sIndent)
|
|||
*
|
||||
* At a minimum, each machine object should contain the following properties:
|
||||
*
|
||||
* 'class' (ie, a machine class, such as "pc" or "c1p")
|
||||
* 'version' (eg, "1.10", or "*" to select the current version; "*" is the default)
|
||||
* 'class' (eg, a machine class, such as "pc" or "c1p")
|
||||
* 'version' (eg, "1.10", "*" to select the current version, or "uncompiled"; "*" is the default)
|
||||
* 'debugger' (eg, true or false; false is the default)
|
||||
*
|
||||
* Additional properties can include:
|
||||
*
|
||||
* 'compiled' (eg, true or false); if not defined, we choose a value based on the module's fDebug setting
|
||||
*
|
||||
* @this {HTMLOut}
|
||||
* @param {Array} aMachines is an array of objects containing information about each machine on the current page
|
||||
* @param {function()} done
|
||||
|
|
@ -1760,20 +1756,18 @@ HTMLOut.prototype.processMachines = function(aMachines, done)
|
|||
|
||||
var sClass = infoMachine['class']; // aka the machine class
|
||||
|
||||
var fCompiled = !this.fDebug;
|
||||
var sVersion = infoMachine['version'];
|
||||
if (sVersion === undefined) sVersion = "*"; // default to newest version
|
||||
if (sVersion === undefined || sVersion == '*') {
|
||||
sVersion = pkg.version;
|
||||
} else {
|
||||
fCompiled = (sVersion != "uncompiled");
|
||||
}
|
||||
|
||||
var fDebugger = infoMachine['debugger'];
|
||||
if (fDebugger === undefined) fDebugger = false; // default to no debugger
|
||||
|
||||
var fCompiled = infoMachine['compiled'];
|
||||
if (fCompiled === undefined) fCompiled = !this.fDebug;
|
||||
if (sVersion == "*") {
|
||||
sVersion = pkg.version;
|
||||
} else {
|
||||
fCompiled = true; // use of a specific version requires using the compiled version
|
||||
}
|
||||
var fNoDebug = !fCompiled && net.hasParm(net.GORT_COMMAND, net.GORT_NODEBUG, this.req);
|
||||
var fNoDebug = !this.fDebug || net.hasParm(net.GORT_COMMAND, net.GORT_NODEBUG, this.req);
|
||||
|
||||
var sScriptEmbed = "";
|
||||
if (infoMachine['func']) {
|
||||
|
|
|
|||
|
|
@ -120,8 +120,8 @@ var aExternalRedirects = {
|
|||
};
|
||||
|
||||
var aExternalRedirectPatterns = {
|
||||
"^/configs/c1p/machines/(.*)": "/devices/c1p/machine/$1",
|
||||
"^/configs/pc/machines/(.*)": "/devices/pc/machine/$1"
|
||||
"^/configs/c1p/machines/?(.*)": "/devices/c1p/machine/$1",
|
||||
"^/configs/pc/machines/?(.*)": "/devices/pc/machine/$1"
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue