lemonldap-ng/lemonldap-ng-manager/site/static/js/conftree.js

760 lines
24 KiB
JavaScript
Raw Normal View History

2016-01-21 12:36:23 +01:00
function templates(tpl, key) {
var ind;
var scalarTemplate = function(r) {
return {
"id": tpl + "s/" + (ind++),
"title": r,
"get": tpl + "s/" + key + "/" + r
};
};
switch (tpl) {
case 'oidcOPMetaDataNode':
return[{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataJSON",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataJSON",
"title": "oidcOPMetaDataJSON",
"type": "file"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataJWKS",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataJWKS",
"title": "oidcOPMetaDataJWKS",
"type": "file"
},
{
"cnodes": tpl + "s/" + key + "/" + "oidcOPMetaDataExportedVars",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataExportedVars",
"title": "oidcOPMetaDataExportedVars",
"type": "keyTextContainer"
},
{
"_nodes": [{
"_nodes": [{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsConfigurationURI",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsConfigurationURI",
"title": "oidcOPMetaDataOptionsConfigurationURI"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsJWKSTimeout",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsJWKSTimeout",
"title": "oidcOPMetaDataOptionsJWKSTimeout",
"type": "int"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsClientID",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsClientID",
"title": "oidcOPMetaDataOptionsClientID"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsClientSecret",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsClientSecret",
"title": "oidcOPMetaDataOptionsClientSecret",
"type": "password"
}],
"id": "oidcOPMetaDataOptionsConfiguration",
"title": "oidcOPMetaDataOptionsConfiguration",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": "openid profile",
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsScope",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsScope",
"title": "oidcOPMetaDataOptionsScope"
},
{
"default": "",
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsDisplay",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsDisplay",
"select": [{
"k": "",
"v": ""
},
{
"k": "page",
"v": "page"
},
{
"k": "popup",
"v": "popup"
},
{
"k": "touch",
"v": "touch"
},
{
"k": "wap",
"v": "wap"
}],
"title": "oidcOPMetaDataOptionsDisplay",
"type": "select"
},
{
"default": "login consent",
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsPrompt",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsPrompt",
"title": "oidcOPMetaDataOptionsPrompt"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsMaxAge",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsMaxAge",
"title": "oidcOPMetaDataOptionsMaxAge",
"type": "int"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsUiLocales",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsUiLocales",
"title": "oidcOPMetaDataOptionsUiLocales"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsAcrValues",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsAcrValues",
"title": "oidcOPMetaDataOptionsAcrValues"
},
{
"default": "client_secret_post",
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsTokenEndpointAuthMethod",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsTokenEndpointAuthMethod",
"select": [{
"k": "client_secret_post",
"v": "client_secret_post"
},
{
"k": "client_secret_basic",
"v": "client_secret_basic"
}],
"title": "oidcOPMetaDataOptionsTokenEndpointAuthMethod",
"type": "select"
},
{
"default": 1,
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsCheckJWTSignature",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsCheckJWTSignature",
"title": "oidcOPMetaDataOptionsCheckJWTSignature",
"type": "bool"
},
{
"default": 30,
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsIDTokenMaxAge",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsIDTokenMaxAge",
"title": "oidcOPMetaDataOptionsIDTokenMaxAge",
"type": "int"
},
{
"default": 1,
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsUseNonce",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsUseNonce",
"title": "oidcOPMetaDataOptionsUseNonce",
"type": "bool"
}],
"id": "oidcOPMetaDataOptionsProtocol",
"title": "oidcOPMetaDataOptionsProtocol",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsDisplayName",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsDisplayName",
"title": "oidcOPMetaDataOptionsDisplayName"
},
{
"get": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsIcon",
"id": tpl + "s/" + key + "/" + "oidcOPMetaDataOptionsIcon",
"title": "oidcOPMetaDataOptionsIcon"
}],
"id": "oidcOPMetaDataOptionsDisplayParams",
"title": "oidcOPMetaDataOptionsDisplayParams",
"type": "simpleInputContainer"
}],
"id": "oidcOPMetaDataOptions",
"title": "oidcOPMetaDataOptions"
}];
case 'oidcRPMetaDataNode':
return[{
"cnodes": tpl + "s/" + key + "/" + "oidcRPMetaDataExportedVars",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataExportedVars",
"title": "oidcRPMetaDataExportedVars",
"type": "keyTextContainer"
},
{
"_nodes": [{
"_nodes": [{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsClientID",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsClientID",
"title": "oidcRPMetaDataOptionsClientID"
},
{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsClientSecret",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsClientSecret",
"title": "oidcRPMetaDataOptionsClientSecret",
"type": "password"
}],
"id": "oidcRPMetaDataOptionsAuthentication",
"title": "oidcRPMetaDataOptionsAuthentication",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsDisplayName",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsDisplayName",
"title": "oidcRPMetaDataOptionsDisplayName"
},
{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIcon",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIcon",
"title": "oidcRPMetaDataOptionsIcon"
}],
"id": "oidcRPMetaDataOptionsDisplay",
"title": "oidcRPMetaDataOptionsDisplay",
"type": "simpleInputContainer"
},
{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsUserIDAttr",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsUserIDAttr",
"title": "oidcRPMetaDataOptionsUserIDAttr"
},
{
"default": "HS512",
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIDTokenSignAlg",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIDTokenSignAlg",
"select": [{
"k": "none",
"v": "None"
},
{
"k": "HS256",
"v": "HS256"
},
{
"k": "HS384",
"v": "HS384"
},
{
"k": "HS512",
"v": "HS512"
},
{
"k": "RS256",
"v": "RS256"
},
{
"k": "RS384",
"v": "RS384"
},
{
"k": "RS512",
"v": "RS512"
}],
"title": "oidcRPMetaDataOptionsIDTokenSignAlg",
"type": "select"
},
{
"default": 3600,
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIDTokenExpiration",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsIDTokenExpiration",
"title": "oidcRPMetaDataOptionsIDTokenExpiration",
"type": "int"
},
{
"default": 3600,
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsAccessTokenExpiration",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsAccessTokenExpiration",
"title": "oidcRPMetaDataOptionsAccessTokenExpiration",
"type": "int"
},
{
"get": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsRedirectUris",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsRedirectUris",
"title": "oidcRPMetaDataOptionsRedirectUris"
},
{
"cnodes": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsExtraClaims",
"id": tpl + "s/" + key + "/" + "oidcRPMetaDataOptionsExtraClaims",
"title": "oidcRPMetaDataOptionsExtraClaims",
"type": "keyTextContainer"
}],
"id": "oidcRPMetaDataOptions",
"title": "oidcRPMetaDataOptions"
}];
case 'samlIDPMetaDataNode':
return[{
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataXML",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataXML",
"title": "samlIDPMetaDataXML",
"type": "file"
},
{
"cnodes": tpl + "s/" + key + "/" + "samlIDPMetaDataExportedAttributes",
"default": [],
"help": "authsaml.html#exported_attributes",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataExportedAttributes",
"title": "samlIDPMetaDataExportedAttributes",
"type": "samlAttributeContainer"
},
{
"_nodes": [{
"default": "",
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsNameIDFormat",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsNameIDFormat",
"select": [{
"k": "",
"v": ""
},
{
"k": "unspecified",
"v": "Unspecified"
},
{
"k": "email",
"v": "Email"
},
{
"k": "x509",
"v": "X509 certificate"
},
{
"k": "windows",
"v": "Windows"
},
{
"k": "kerberos",
"v": "Kerberos"
},
{
"k": "entity",
"v": "Entity"
},
{
"k": "persistent",
"v": "Persistent"
},
{
"k": "transient",
"v": "Transient"
},
{
"k": "encrypted",
"v": "Encrypted"
}],
"title": "samlIDPMetaDataOptionsNameIDFormat",
"type": "select"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsForceAuthn",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsForceAuthn",
"title": "samlIDPMetaDataOptionsForceAuthn",
"type": "bool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsIsPassive",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsIsPassive",
"title": "samlIDPMetaDataOptionsIsPassive",
"type": "bool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAllowProxiedAuthn",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAllowProxiedAuthn",
"title": "samlIDPMetaDataOptionsAllowProxiedAuthn",
"type": "bool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAllowLoginFromIDP",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAllowLoginFromIDP",
"title": "samlIDPMetaDataOptionsAllowLoginFromIDP",
"type": "bool"
},
{
"default": "",
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsRequestedAuthnContext",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsRequestedAuthnContext",
"select": [{
"k": "",
"v": ""
},
{
"k": "kerberos",
"v": "Kerberos"
},
{
"k": "password-protected-transport",
"v": "Password protected transport"
},
{
"k": "password",
"v": "Password"
},
{
"k": "tls-client",
"v": "TLS client certificate"
}],
"title": "samlIDPMetaDataOptionsRequestedAuthnContext",
"type": "select"
}],
"help": "authsaml.html#options",
"id": "samlIDPMetaDataOptions",
"title": "samlIDPMetaDataOptions",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAdaptSessionUtime",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsAdaptSessionUtime",
"title": "samlIDPMetaDataOptionsAdaptSessionUtime",
"type": "bool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsForceUTF8",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsForceUTF8",
"title": "samlIDPMetaDataOptionsForceUTF8",
"type": "bool"
}],
"id": "samlIDPMetaDataOptionsSession",
"title": "samlIDPMetaDataOptionsSession",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": -1,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSignSSOMessage",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSignSSOMessage",
"title": "samlIDPMetaDataOptionsSignSSOMessage",
"type": "trool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckSSOMessageSignature",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckSSOMessageSignature",
"title": "samlIDPMetaDataOptionsCheckSSOMessageSignature",
"type": "bool"
},
{
"default": -1,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSignSLOMessage",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSignSLOMessage",
"title": "samlIDPMetaDataOptionsSignSLOMessage",
"type": "trool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckSLOMessageSignature",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckSLOMessageSignature",
"title": "samlIDPMetaDataOptionsCheckSLOMessageSignature",
"type": "bool"
}],
"id": "samlIDPMetaDataOptionsSignature",
"title": "samlIDPMetaDataOptionsSignature",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": "",
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSSOBinding",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSSOBinding",
"select": [{
"k": "",
"v": ""
},
{
"k": "http-post",
"v": "POST"
},
{
"k": "http-redirect",
"v": "Redirect"
},
{
"k": "http-soap",
"v": "SOAP"
},
{
"k": "artifact-get",
"v": "Artifact GET"
},
{
"k": "artifact-post",
"v": "Artifact POST"
}],
"title": "samlIDPMetaDataOptionsSSOBinding",
"type": "select"
},
{
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSLOBinding",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsSLOBinding",
"title": "samlIDPMetaDataOptionsSLOBinding"
}],
"id": "samlIDPMetaDataOptionsBinding",
"title": "samlIDPMetaDataOptionsBinding",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": "none",
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsEncryptionMode",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsEncryptionMode",
"select": [{
"k": "none",
"v": "None"
},
{
"k": "nameid",
"v": "Name ID"
},
{
"k": "assertion",
"v": "Assertion"
}],
"title": "samlIDPMetaDataOptionsEncryptionMode",
"type": "select"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckConditions",
"id": tpl + "s/" + key + "/" + "samlIDPMetaDataOptionsCheckConditions",
"title": "samlIDPMetaDataOptionsCheckConditions",
"type": "bool"
}],
"id": "samlIDPMetaDataOptionsSecurity",
"title": "samlIDPMetaDataOptionsSecurity",
"type": "simpleInputContainer"
}];
case 'samlSPMetaDataNode':
return[{
"get": tpl + "s/" + key + "/" + "samlSPMetaDataXML",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataXML",
"title": "samlSPMetaDataXML",
"type": "file"
},
{
"cnodes": tpl + "s/" + key + "/" + "samlSPMetaDataExportedAttributes",
"default": [],
"help": "idpsaml.html#exported_attributes",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataExportedAttributes",
"title": "samlSPMetaDataExportedAttributes",
"type": "samlAttributeContainer"
},
{
"_nodes": [{
"_nodes": [{
"default": "",
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNameIDFormat",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNameIDFormat",
"select": [{
"k": "",
"v": ""
},
{
"k": "unspecified",
"v": "Unspecified"
},
{
"k": "email",
"v": "Email"
},
{
"k": "x509",
"v": "X509 certificate"
},
{
"k": "windows",
"v": "Windows"
},
{
"k": "kerberos",
"v": "Kerberos"
},
{
"k": "entity",
"v": "Entity"
},
{
"k": "persistent",
"v": "Persistent"
},
{
"k": "transient",
"v": "Transient"
},
{
"k": "encrypted",
"v": "Encrypted"
}],
"title": "samlSPMetaDataOptionsNameIDFormat",
"type": "select"
},
{
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNameIDSessionKey",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNameIDSessionKey",
"title": "samlSPMetaDataOptionsNameIDSessionKey"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsOneTimeUse",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsOneTimeUse",
"title": "samlSPMetaDataOptionsOneTimeUse",
"type": "bool"
},
{
"default": 72000,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSessionNotOnOrAfterTimeout",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSessionNotOnOrAfterTimeout",
"title": "samlSPMetaDataOptionsSessionNotOnOrAfterTimeout",
"type": "int"
},
{
"default": 72000,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNotOnOrAfterTimeout",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsNotOnOrAfterTimeout",
"title": "samlSPMetaDataOptionsNotOnOrAfterTimeout",
"type": "int"
}],
"id": "samlSPMetaDataOptionsAuthnResponse",
"title": "samlSPMetaDataOptionsAuthnResponse",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": -1,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSignSSOMessage",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSignSSOMessage",
"title": "samlSPMetaDataOptionsSignSSOMessage",
"type": "trool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsCheckSSOMessageSignature",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsCheckSSOMessageSignature",
"title": "samlSPMetaDataOptionsCheckSSOMessageSignature",
"type": "bool"
},
{
"default": -1,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSignSLOMessage",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsSignSLOMessage",
"title": "samlSPMetaDataOptionsSignSLOMessage",
"type": "trool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsCheckSLOMessageSignature",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsCheckSLOMessageSignature",
"title": "samlSPMetaDataOptionsCheckSLOMessageSignature",
"type": "bool"
}],
"id": "samlSPMetaDataOptionsSignature",
"title": "samlSPMetaDataOptionsSignature",
"type": "simpleInputContainer"
},
{
"_nodes": [{
"default": "none",
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsEncryptionMode",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsEncryptionMode",
"select": [{
"k": "none",
"v": "None"
},
{
"k": "nameid",
"v": "Name ID"
},
{
"k": "assertion",
"v": "Assertion"
}],
"title": "samlSPMetaDataOptionsEncryptionMode",
"type": "select"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsEnableIDPInitiatedURL",
"id": tpl + "s/" + key + "/" + "samlSPMetaDataOptionsEnableIDPInitiatedURL",
"title": "samlSPMetaDataOptionsEnableIDPInitiatedURL",
"type": "bool"
}],
"id": "samlSPMetaDataOptionsSecurity",
"title": "samlSPMetaDataOptionsSecurity",
"type": "simpleInputContainer"
}],
"help": "idpsaml.html#options",
"id": "samlSPMetaDataOptions",
"title": "samlSPMetaDataOptions"
}];
case 'virtualHost':
return[{
"cnodes": tpl + "s/" + key + "/" + "locationRules",
"default": [{
"data": "deny",
"id": tpl + "s/" + key + "/" + "locationRules/default",
"re": "default",
"title": "default",
"type": "rule"
}],
"help": "writingrulesand_headers.html#rules",
"id": tpl + "s/" + key + "/" + "locationRules",
"title": "locationRules",
"type": "ruleContainer"
},
{
"cnodes": tpl + "s/" + key + "/" + "exportedHeaders",
"help": "writingrulesand_headers.html#headers",
"id": tpl + "s/" + key + "/" + "exportedHeaders",
"title": "exportedHeaders",
"type": "keyTextContainer"
},
{
"cnodes": tpl + "s/" + key + "/" + "post",
"help": "formreplay.html",
"id": tpl + "s/" + key + "/" + "post",
"title": "post",
"type": "postContainer"
},
{
"_nodes": [{
"default": -1,
"get": tpl + "s/" + key + "/" + "vhostPort",
"id": tpl + "s/" + key + "/" + "vhostPort",
"title": "vhostPort",
"type": "int"
},
{
"default": -1,
"get": tpl + "s/" + key + "/" + "vhostHttps",
"id": tpl + "s/" + key + "/" + "vhostHttps",
"title": "vhostHttps",
"type": "trool"
},
{
"default": 0,
"get": tpl + "s/" + key + "/" + "vhostMaintenance",
"id": tpl + "s/" + key + "/" + "vhostMaintenance",
"title": "vhostMaintenance",
"type": "bool"
},
{
"get": tpl + "s/" + key + "/" + "vhostAliases",
"id": tpl + "s/" + key + "/" + "vhostAliases",
"title": "vhostAliases"
}],
"help": "configvhost.html#options",
"id": "vhostOptions",
"title": "vhostOptions"
}];
2016-01-20 08:59:35 +01:00
2016-01-21 12:36:23 +01:00
default:
return[];
2016-01-20 08:59:35 +01:00
}
}
function setScopeVars(scope) {
2016-01-21 12:36:23 +01:00
scope.portal = scope.data[0]._nodes[0]._nodes[0];
scope.getKey(scope.portal);
scope.domain = scope.data[0]._nodes[4]._nodes[1];
scope.getKey(scope.domain);
}