mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
Ticket #268: Return array of protocols in service.
This commit is contained in:
@@ -561,7 +561,7 @@ GuacamoleService.Permissions = {
|
|||||||
GuacamoleService.Protocols = {
|
GuacamoleService.Protocols = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an object describing the available protocols and all
|
* Returns an array containing all available protocols and all
|
||||||
* corresponding parameters, as well as hints regarding expected datatype
|
* corresponding parameters, as well as hints regarding expected datatype
|
||||||
* and allowed/default values.
|
* and allowed/default values.
|
||||||
*
|
*
|
||||||
@@ -571,37 +571,36 @@ GuacamoleService.Protocols = {
|
|||||||
* @param {String} parameters Any parameters which should be passed to the
|
* @param {String} parameters Any parameters which should be passed to the
|
||||||
* server for the sake of authentication
|
* server for the sake of authentication
|
||||||
* (optional).
|
* (optional).
|
||||||
* @return {Object} An object describing all available protocols.
|
* @return {Array} An array containing all available protocols.
|
||||||
*/
|
*/
|
||||||
"list" : function(parameters) {
|
"list" : function(parameters) {
|
||||||
|
|
||||||
// FIXME: STUB
|
// FIXME: STUB
|
||||||
return {
|
return [{
|
||||||
|
|
||||||
"vnc" : {
|
/* Unique name */
|
||||||
|
"name" : "vnc",
|
||||||
|
|
||||||
/* Display title */
|
/* Display title */
|
||||||
"title" : "VNC",
|
"title" : "VNC",
|
||||||
|
|
||||||
|
/* All available parameters */
|
||||||
|
"parameters" : {
|
||||||
|
|
||||||
|
"hostname" : {
|
||||||
|
"title" : "Hostname",
|
||||||
|
"type" : "text"
|
||||||
|
},
|
||||||
|
|
||||||
/* All available parameters */
|
"port" : {
|
||||||
"parameters" : {
|
"title" : "Port",
|
||||||
|
"type" : "text",
|
||||||
"hostname" : {
|
"value" : "5900"
|
||||||
"title" : "Hostname",
|
|
||||||
"type" : "text"
|
|
||||||
},
|
|
||||||
|
|
||||||
"port" : {
|
|
||||||
"title" : "Port",
|
|
||||||
"type" : "text",
|
|
||||||
"value" : "5900"
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
}];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user