Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function(result) {
if (result.rc === 'ok') {
COMM.setInitToken(result.initToken);
$.extend(exports.server, result.server);
exports.server.version = result["server.version"];
exports.server.time = result.serverTime;
ready.resolve();
} else {
console.log("ERROR: " + result.message)
// MSG.displayInformation(result, "", result.message);
}
}, 'init gui state model');
}
" <div class="\"icon-signout\""></div>\n" +
" \n"+
" <div>\n" +
" <div class="\"contentDiv\""><div class="\"shine2\""></div>" +
" <span class="\"title\"">Docker</span><br>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">docker客户端版本</span><span>:</span>"+ dockerInfo["client.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">docker客户端API版本</span><span>:</span>"+ dockerInfo["client.api.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">客户端go语言版本</span><span>:</span>"+ dockerInfo["client.go.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">docker服务端版本</span><span>:</span>"+ dockerInfo["server.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">docker服务端API版本</span><span>:</span>"+ dockerInfo["server.api.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">服务端go语言版本</span><span>:</span>"+ dockerInfo["server.go.version"] +
" </div>" +
" <div class="\"kv\"">" +
" <span class="\"kvField\"">Container个数</span><span>:</span>"+ dockerInfo["containers"] +
" </div>" +
" </div>" ;
},
</div>
function setState(result) {
if (result['server.version']) {
GUISTATE.server.version = result['server.version'];
}
if (result['robot.version']) {
GUISTATE.robot.version = result['robot.version'];
}
if (result['robot.firmwareName'] != undefined) {
GUISTATE.robot.fWName = result['robot.firmwareName'];
} else {
GUISTATE.robot.fWName = '';
}
if (result['robot.wait'] != undefined) {
GUISTATE.robot.time = result['robot.wait'];
} else {
GUISTATE.robot.time = -1;
}
if (result['robot.battery'] != undefined) {
function setState(result) {
if (result['server.version']) {
GUISTATE.server.version = result['server.version'];
}
if (result['robot.version']) {
GUISTATE.robot.version = result['robot.version'];
}
if (result['robot.firmwareName'] != undefined) {
GUISTATE.robot.fWName = result['robot.firmwareName'];
} else {
GUISTATE.robot.fWName = '';
}
if (result['robot.wait'] != undefined) {
GUISTATE.robot.time = result['robot.wait'];
} else {
GUISTATE.robot.time = -1;
}
if (result['robot.battery'] != undefined) {
GUISTATE.robot.battery = result['robot.battery'];