How to use the server.version function in server

To help you get started, we’ve selected a few server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenRoberta / openroberta-lab / OpenRobertaServer / staticResources / js / app / roberta / models / guiState.model.js View on Github external
}, 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');
        }
github uavorg / uavstack / com.creditease.uav.console / src / main / webapp / uavapp_godeye / uavnetwork / js / uav.network.js View on Github external
"            <div class="\&quot;icon-signout\&quot;"></div>\n" +
	            "        \n"+
	            "        <div>\n" +
	            "            <div class="\&quot;contentDiv\&quot;"><div class="\&quot;shine2\&quot;"></div>" +
	            "                <span class="\&quot;title\&quot;">Docker</span><br>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">docker客户端版本</span><span>:</span>"+ dockerInfo["client.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">docker客户端API版本</span><span>:</span>"+ dockerInfo["client.api.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">客户端go语言版本</span><span>:</span>"+ dockerInfo["client.go.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">docker服务端版本</span><span>:</span>"+ dockerInfo["server.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">docker服务端API版本</span><span>:</span>"+ dockerInfo["server.api.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">服务端go语言版本</span><span>:</span>"+ dockerInfo["server.go.version"] +
	            "                </div>" +
	            "                <div class="\&quot;kv\&quot;">" +
	            "                    <span class="\&quot;kvField\&quot;">Container个数</span><span>:</span>"+ dockerInfo["containers"] +
	            "                </div>" +
	            "            </div>" ;
	    },
	    </div>
github OpenRoberta / openroberta-lab / OpenRobertaServer / staticResources / js / app / roberta / controller / guiState.controller.js View on Github external
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) {
github OpenRoberta / openroberta-lab / OpenRobertaServer / staticResources / js / app / roberta / controller / guiState.controller.js View on Github external
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'];