2017-07-09 14:53:52 +02:00
<!DOCTYPE html>
< html >
2017-10-16 11:33:14 +02:00
< head >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" / >
< title > Loading...< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< link href = "vendor/bootstrap.min.css" rel = "stylesheet" media = "screen" >
< link href = "vendor/prettify.css" rel = "stylesheet" media = "screen" >
< link href = "css/style.css" rel = "stylesheet" media = "screen, print" >
< link href = "img/favicon.ico" rel = "icon" type = "image/x-icon" >
< script src = "vendor/polyfill.js" > < / script >
< / head >
< body >
< script id = "template-sidenav" type = "text/x-handlebars-template" >
< nav id = "scrollingNav" >
< div class = "sidenav-search" >
< input class = "form-control search" type = "text" placeholder = "{{__ " Filter . . . " } } " >
< span class = "search-reset" > x< / span >
< / div >
< ul class = "sidenav nav nav-list list" >
{{#each nav}}
{{#if title}}
{{#if isHeader}}
{{#if isFixed}}
2017-07-09 14:53:52 +02:00
< li class = "nav-fixed nav-header navbar-btn nav-list-item" data-group = "{{group}}" > < a href = "#api-{{group}}" > {{underscoreToSpace title}}< / a > < / li >
2017-10-16 11:33:14 +02:00
{{else}}
2017-07-09 14:53:52 +02:00
< li class = "nav-header nav-list-item" data-group = "{{group}}" > < a href = "#api-{{group}}" > {{underscoreToSpace title}}< / a > < / li >
2017-10-16 11:33:14 +02:00
{{/if}}
{{else}}
< li class = "{{#if hidden}}hide {{/if}}" data-group = "{{group}}" data-name = "{{name}}" data-version = "{{version}}" >
< a href = "#api-{{group}}-{{name}}" class = "nav-list-item" > {{title}}< / a >
< / li >
{{/if}}
{{/if}}
{{/each}}
< / ul >
< / nav >
< / script >
< script id = "template-project" type = "text/x-handlebars-template" >
< div class = "pull-left" >
< h1 > {{name}}< / h1 >
{{#if description}}< h2 > {{{nl2br description}}}< / h2 > {{/if}}
< / div >
{{#if template.withCompare}}
< div class = "pull-right" >
< div class = "btn-group" >
< button id = "version" class = "btn btn-lg btn-default dropdown-toggle" data-toggle = "dropdown" >
2017-07-09 14:53:52 +02:00
< strong > {{version}}< / strong > < span class = "caret" > < / span >
< / button >
2017-10-16 11:33:14 +02:00
< ul id = "versions" class = "dropdown-menu open-left" >
< li > < a id = "compareAllWithPredecessor" href = "#" > {{__ "Compare all with predecessor"}}< / a > < / li >
< li class = "divider" > < / li >
< li class = "disabled" > < a href = "#" > {{__ "show up to version:"}}< / a > < / li >
{{#each versions}}
< li class = "version" > < a href = "#" > {{this}}< / a > < / li >
{{/each}}
< / ul >
< / div >
< / div >
{{/if}}
< div class = "clearfix" > < / div >
< / script >
< script id = "template-header" type = "text/x-handlebars-template" >
{{#if content}}
< div id = "api-_" > {{{content}}}< / div >
{{/if}}
< / script >
< script id = "template-footer" type = "text/x-handlebars-template" >
{{#if content}}
< div id = "api-_footer" > {{{content}}}< / div >
{{/if}}
< / script >
< script id = "template-generator" type = "text/x-handlebars-template" >
{{#if template.withGenerator}}
{{#if generator}}
2017-07-09 14:53:52 +02:00
< div class = "content" >
{{__ "Generated with"}} < a href = "{{{generator.url}}}" > {{{generator.name}}}< / a > {{{generator.version}}} - {{{generator.time}}}
< / div >
2017-10-16 11:33:14 +02:00
{{/if}}
{{/if}}
< / script >
< script id = "template-sections" type = "text/x-handlebars-template" >
< section id = "api-{{group}}" >
< h1 > {{underscoreToSpace title}}< / h1 >
{{#if description}}
< p > {{{nl2br description}}}< / p >
{{/if}}
{{#each articles}}
< div id = "api-{{group}}-{{name}}" >
{{{article}}}
< / div >
{{/each}}
< / section >
< / script >
< script id = "template-article" type = "text/x-handlebars-template" >
< article id = "api-{{article.group}}-{{article.name}}-{{article.version}}" { { # if hidden } } class = "hide" { { / if } } data-group = "{{article.group}}" data-name = "{{article.name}}" data-version = "{{article.version}}" >
< div class = "pull-left" >
< h1 > {{article.groupTitle}}{{#if article.title}} - {{article.title}}{{/if}}< / h1 >
< / div >
{{#if template.withCompare}}
< div class = "pull-right" >
< div class = "btn-group" >
< button class = "version btn btn-default dropdown-toggle" data-toggle = "dropdown" >
2017-07-23 07:46:29 +02:00
< strong > {{article.version}}< / strong > < span class = "caret" > < / span >
< / button >
2017-10-16 11:33:14 +02:00
< ul class = "versions dropdown-menu open-left" >
< li class = "disabled" > < a href = "#" > {{__ "compare changes to:"}}< / a > < / li >
{{#each versions}}
< li class = "version" > < a href = "#" > {{this}}< / a > < / li >
{{/each}}
< / ul >
< / div >
< / div >
{{/if}}
< div class = "clearfix" > < / div >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{#if article.deprecated}}
< p class = "deprecated" > < span > {{__ "DEPRECATED"}}< / span >
{{{markdown article.deprecated.content}}}
< / p >
{{/if}}
{{#if article.description}}
< p > {{{nl2br article.description}}}< / p >
{{/if}}
< span class = "type type__{{toLowerCase article.type}}" > {{toLowerCase article.type}}< / span >
< pre class = "prettyprint language-html" data-type = "{{toLowerCase article.type}}" > < code > {{article.url}}< / code > < / pre >
{{#if article.permission}}
< p >
{{__ "Permission:"}}
{{#each article.permission}}
{{name}}
{{#if title}}
2017-07-09 14:53:52 +02:00
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{title}}" data-content = "{{nl2br description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{/if}}
{{/each}}
< / p >
{{/if}}
{{#if_gt article.examples.length compare=0}}
< ul class = "nav nav-tabs nav-tabs-examples" >
{{#each article.examples}}
< li { { # if_eq @ index compare = 0}} class = "active" { { / if_eq } } >
2017-07-09 14:53:52 +02:00
< a href = "#examples-{{../id}}-{{@index}}" > {{title}}< / a >
2017-10-16 11:33:14 +02:00
< / li >
{{/each}}
< / ul >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< div class = "tab-content" >
{{#each article.examples}}
< div class = "tab-pane{{#if_eq @index compare=0}} active{{/if_eq}}" id = "examples-{{../id}}-{{@index}}" >
< pre class = "prettyprint language-{{type}}" data-type = "{{type}}" > < code > {{content}}< / code > < / pre >
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
{{/each}}
< / div >
{{/if_gt}}
{{subTemplate "article-param-block" params=article.header _hasType=_hasTypeInHeaderFields section="header"}}
{{subTemplate "article-param-block" params=article.parameter _hasType=_hasTypeInParameterFields section="parameter"}}
{{subTemplate "article-param-block" params=article.success _hasType=_hasTypeInSuccessFields section="success"}}
{{subTemplate "article-param-block" params=article.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}}
{{subTemplate "article-sample-request" article=article id=id}}
< / article >
< / script >
< script id = "template-article-param-block" type = "text/x-handlebars-template" >
{{#if params}}
{{#each params.fields}}
2017-07-09 14:53:52 +02:00
< h2 > {{__ @key}}< / h2 >
< table >
< thead >
< tr >
2017-10-16 11:33:14 +02:00
< th style = "width: 30%" > {{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}< / th >
{{#if ../_hasType}}< th style = "width: 10%" > {{__ "Type"}}< / th > {{/if}}
2017-07-09 14:53:52 +02:00
< th style = "width: {{#if ../_hasType}}60%{{else}}70%{{/if}}" > {{__ "Description"}}< / th >
< / tr >
< / thead >
< tbody >
2017-10-16 11:33:14 +02:00
{{#each this}}
2017-07-09 14:53:52 +02:00
< tr >
< td class = "code" > {{{splitFill field "." " "}}}{{#if optional}} < span class = "label label-optional" > {{__ "optional"}}< / span > {{/if}}< / td >
{{#if ../../_hasType}}
2017-10-16 11:33:14 +02:00
< td >
{{{type}}}
< / td >
2017-07-09 14:53:52 +02:00
{{/if}}
< td >
2017-10-16 11:33:14 +02:00
{{{nl2br description}}}
{{#if defaultValue}}< p class = "default-value" > {{__ "Default value:"}} < code > {{{defaultValue}}}< / code > < / p > {{/if}}
{{#if size}}< p class = "type-size" > {{__ "Size range:"}} < code > {{{size}}}< / code > < / p > {{/if}}
{{#if allowedValues}}< p class = "type-size" > {{__ "Allowed values:"}}
{{#each allowedValues}}
< code > {{{this}}}< / code > {{#unless @last}}, {{/unless}}
{{/each}}
2017-07-09 14:53:52 +02:00
< / p >
2017-10-16 11:33:14 +02:00
{{/if}}
2017-07-09 14:53:52 +02:00
< / td >
< / tr >
2017-10-16 11:33:14 +02:00
{{/each}}
2017-07-09 14:53:52 +02:00
< / tbody >
< / table >
2017-10-16 11:33:14 +02:00
{{/each}}
{{#if_gt params.examples.length compare=0}}
2017-07-09 14:53:52 +02:00
< ul class = "nav nav-tabs nav-tabs-examples" >
2017-10-16 11:33:14 +02:00
{{#each params.examples}}
< li { { # if_eq @ index compare = 0}} class = "active" { { / if_eq } } >
2017-07-09 14:53:52 +02:00
< a href = "#{{../section}}-examples-{{../id}}-{{@index}}" > {{title}}< / a >
2017-10-16 11:33:14 +02:00
< / li >
{{/each}}
2017-07-09 14:53:52 +02:00
< / ul >
< div class = "tab-content" >
2017-10-16 11:33:14 +02:00
{{#each params.examples}}
2017-07-09 14:53:52 +02:00
< div class = "tab-pane{{#if_eq @index compare=0}} active{{/if_eq}}" id = "{{../section}}-examples-{{../id}}-{{@index}}" >
2017-10-16 11:33:14 +02:00
< pre class = "prettyprint language-{{type}}" data-type = "{{type}}" > < code > {{reformat content type}}< / code > < / pre >
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
{{/each}}
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
{{/if_gt}}
{{/if}}
< / script >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< script id = "template-article-sample-request" type = "text/x-handlebars-template" >
{{#if article.sampleRequest}}
2017-07-09 14:53:52 +02:00
< h2 > {{__ "Send a Sample Request"}}< / h2 >
< form class = "form-horizontal" >
< fieldset >
2017-07-23 07:46:29 +02:00
< div class = "form-group" >
2017-10-16 11:33:14 +02:00
< label class = "col-md-3 control-label" for = "{{../id}}-sample-request-url" > < / label >
2017-07-23 07:46:29 +02:00
< div class = "input-group" >
2017-10-16 11:33:14 +02:00
< input id = "{{../id}}-sample-request-url" type = "text" class = "form-control sample-request-url" value = "{{article.sampleRequest.0.url}}" / >
< span class = "input-group-addon" > {{__ "url"}}< / span >
2017-07-09 14:53:52 +02:00
< / div >
< / div >
2017-10-16 11:33:14 +02:00
{{#if article.header}}
{{#if article.header.fields}}
< h3 > {{__ "Headers"}}< / h3 >
{{#each article.header.fields}}
< h4 > < input type = "radio" data-sample-request-header-group-id = "sample-request-header-{{@index}}" name = "{{../id}}-sample-request-header" value = "{{@index}}" class = "sample-request-header sample-request-switch" { { # if_eq @ index compare = 0}} checked { { / if_eq } } / > {{@key}}< / h4 >
< div class = "{{../id}}-sample-request-header-fields{{#if_gt @index compare=0}} hide{{/if_gt}}" >
{{#each this}}
< div class = "form-group" >
< label class = "col-md-3 control-label" for = "sample-request-header-field-{{field}}" > {{field}}< / label >
< div class = "input-group" >
< input type = "text" placeholder = "{{field}}" id = "sample-request-header-field-{{field}}" class = "form-control sample-request-header" data-sample-request-header-name = "{{field}}" data-sample-request-header-group = "sample-request-header-{{@../index}}" >
< span class = "input-group-addon" > {{{type}}}< / span >
< / div >
< / div >
{{/each}}
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
{{/each}}
{{/if}}
{{/if}}
{{#if article.parameter}}
{{#if article.parameter.fields}}
< h3 > {{__ "Parameters"}}< / h3 >
{{#each article.parameter.fields}}
< h4 > < input type = "radio" data-sample-request-param-group-id = "sample-request-param-{{@index}}" name = "{{../id}}-sample-request-param" value = "{{@index}}" class = "sample-request-param sample-request-switch" { { # if_eq @ index compare = 0}} checked { { / if_eq } } / > {{@key}}< / h4 >
< div class = "form-group {{../id}}-sample-request-param-fields{{#if_gt @index compare=0}} hide{{/if_gt}}" >
{{#each this}}
< label class = "col-md-3 control-label" for = "sample-request-param-field-{{field}}" > {{field}}< / label >
< div class = "input-group" >
< input id = "sample-request-param-field-{{field}}" type = "text" placeholder = "{{field}}" class = "form-control sample-request-param" data-sample-request-param-name = "{{field}}" data-sample-request-param-group = "sample-request-param-{{@../index}}" { { # if optional } } data-sample-request-param-optional = "true" { { / if } } >
< div class = "input-group-addon" > {{{type}}}< / div >
< / div >
{{/each}}
< / div >
{{/each}}
{{/if}}
{{/if}}
2017-07-09 14:53:52 +02:00
< div class = "form-group" >
< div class = "controls pull-right" >
< button class = "btn btn-primary sample-request-send" data-sample-request-type = "{{article.type}}" > {{__ "Send"}}< / button >
< / div >
< / div >
< div class = "form-group sample-request-response" style = "display: none;" >
< h3 >
{{__ "Response"}}
< button class = "btn btn-default btn-xs pull-right sample-request-clear" > X< / button >
< / h3 >
< pre class = "prettyprint language-json" data-type = "json" > < code class = "sample-request-response-json" > < / code > < / pre >
< / div >
< / fieldset >
< / form >
2017-10-16 11:33:14 +02:00
{{/if}}
< / script >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< script id = "template-compare-article" type = "text/x-handlebars-template" >
< article id = "api-{{article.group}}-{{article.name}}-{{article.version}}" { { # if hidden } } class = "hide" { { / if } } data-group = "{{article.group}}" data-name = "{{article.name}}" data-version = "{{article.version}}" data-compare-version = "{{compare.version}}" >
< div class = "pull-left" >
< h1 > {{underscoreToSpace article.group}} - {{{showDiff article.title compare.title}}}< / h1 >
< / div >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< div class = "pull-right" >
< div class = "btn-group" >
< button class = "btn btn-success" disabled >
2017-07-09 14:53:52 +02:00
< strong > {{article.version}}< / strong > {{__ "compared to"}}
< / button >
2017-10-16 11:33:14 +02:00
< button class = "version btn btn-danger dropdown-toggle" data-toggle = "dropdown" >
2017-07-09 14:53:52 +02:00
< strong > {{compare.version}}< / strong > < span class = "caret" > < / span >
< / button >
2017-10-16 11:33:14 +02:00
< ul class = "versions dropdown-menu open-left" >
< li class = "disabled" > < a href = "#" > {{__ "compare changes to:"}}< / a > < / li >
< li class = "divider" > < / li >
{{#each versions}}
< li class = "version" > < a href = "#" > {{this}}< / a > < / li >
{{/each}}
2017-07-23 07:46:29 +02:00
< / ul >
2017-10-16 11:33:14 +02:00
< / div >
< / div >
< div class = "clearfix" > < / div >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{#if article.description}}
< p > {{{showDiff article.description compare.description "nl2br"}}}< / p >
{{else}}
{{#if compare.description}}
< p > {{{showDiff "" compare.description "nl2br"}}}< / p >
{{/if}}
{{/if}}
< pre class = "prettyprint language-html" data-type = "{{toLowerCase article.type}}" > < code > {{{showDiff article.url compare.url}}}< / code > < / pre >
{{subTemplate "article-compare-permission" article=article compare=compare}}
< ul class = "nav nav-tabs nav-tabs-examples" >
{{#each_compare_title article.examples compare.examples}}
{{#if typeSame}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
< a href = "#compare-examples-{{../../article.id}}-{{index}}" > {{{showDiff source.title compare.title}}}< / a >
< / li >
{{/if}}
{{#if typeIns}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
< a href = "#compare-examples-{{../../article.id}}-{{index}}" > < ins > {{{source.title}}}< / ins > < / a >
< / li >
{{/if}}
{{#if typeDel}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
< a href = "#compare-examples-{{../../article.id}}-{{index}}" > < del > {{{compare.title}}}< / del > < / a >
< / li >
{{/if}}
{{/each_compare_title}}
< / ul >
< div class = "tab-content" >
{{#each_compare_title article.examples compare.examples}}
{{#if typeSame}}
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{source.type}}" > < code > {{{showDiff source.content compare.content}}}< / code > < / pre >
< / div >
{{/if}}
{{#if typeIns}}
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{source.type}}" > < code > {{{source.content}}}< / code > < / pre >
< / div >
{{/if}}
{{#if typeDel}}
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{compare.type}}" > < code > {{{compare.content}}}< / code > < / pre >
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
{{/if}}
{{/each_compare_title}}
< / div >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{subTemplate "article-compare-param-block" source=article.parameter compare=compare.parameter _hasType=_hasTypeInParameterFields section="parameter"}}
{{subTemplate "article-compare-param-block" source=article.success compare=compare.success _hasType=_hasTypeInSuccessFields section="success"}}
{{subTemplate "article-compare-param-block" source=article.error compare=compare.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}}
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{subTemplate "article-sample-request" article=article id=id}}
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< / article >
< / script >
< script id = "template-article-compare-permission" type = "text/x-handlebars-template" >
< p >
{{__ "Permission:"}}
{{#each_compare_list_field article.permission compare.permission field="name"}}
{{#if source}}
{{#if typeSame}}
{{source.name}}
{{#if source.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{source.title}}" data-content = "{{nl2br source.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
2017-07-09 14:53:52 +02:00
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
{{#if typeIns}}
< ins > {{source.name}}< / ins >
{{#if source.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{source.title}}" data-content = "{{nl2br source.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
2017-07-09 14:53:52 +02:00
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
{{#if typeDel}}
< del > {{source.name}}< / del >
{{#if source.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{source.title}}" data-content = "{{nl2br source.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
2017-07-09 14:53:52 +02:00
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
{{else}}
{{#if typeSame}}
{{compare.name}}
{{#if compare.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{compare.title}}" data-content = "{{nl2br compare.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
2017-07-09 14:53:52 +02:00
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
{{#if typeIns}}
< ins > {{compare.name}}< / ins >
{{#if compare.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{compare.title}}" data-content = "{{nl2br compare.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
2017-07-09 14:53:52 +02:00
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
2017-10-16 11:33:14 +02:00
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
2017-07-23 07:46:29 +02:00
2017-10-16 11:33:14 +02:00
{{#if typeDel}}
< del > {{compare.name}}< / del >
{{#if compare.title}}
< button type = "button" class = "btn btn-info btn-xs" data-title = "{{compare.title}}" data-content = "{{nl2br compare.description}}" data-html = "true" data-toggle = "popover" data-placement = "right" data-trigger = "hover" >
< span class = "glyphicon glyphicon-info-sign" aria-hidden = "true" > < / span >
< / button >
{{#unless _last}}, {{/unless}}
{{/if}}
{{/if}}
{{/if}}
{{/each_compare_list_field}}
< / p >
< / script >
< script id = "template-article-compare-param-block" type = "text/x-handlebars-template" >
{{#if source}}
{{#each_compare_keys source.fields compare.fields}}
{{#if typeSame}}
< h2 > {{__ source.key}}< / h2 >
< table >
2017-07-09 14:53:52 +02:00
< thead >
< tr >
< th style = "width: 30%" > {{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}< / th >
2017-10-16 11:33:14 +02:00
{{#if ../_hasType}}< th style = "width: 10%" > {{__ "Type"}}< / th > {{/if}}
2017-07-09 14:53:52 +02:00
< th style = "width: {{#if ../_hasType}}60%{{else}}70%{{/if}}" > {{__ "Description"}}< / th >
< / tr >
< / thead >
{{subTemplate "article-compare-param-block-body" source=source.value compare=compare.value _hasType=../_hasType}}
2017-10-16 11:33:14 +02:00
< / table >
{{/if}}
{{#if typeIns}}
< h2 > < ins > {{__ source.key}}< / ins > < / h2 >
< table class = "ins" >
2017-07-09 14:53:52 +02:00
< thead >
< tr >
< th style = "width: 30%" > {{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}< / th >
2017-10-16 11:33:14 +02:00
{{#if ../_hasType}}< th style = "width: 10%" > {{__ "Type"}}< / th > {{/if}}
2017-07-09 14:53:52 +02:00
< th style = "width: {{#if ../_hasType}}60%{{else}}70%{{/if}}" > {{__ "Description"}}< / th >
< / tr >
< / thead >
{{subTemplate "article-compare-param-block-body" source=source.value compare=source.value _hasType=../_hasType}}
2017-10-16 11:33:14 +02:00
< / table >
{{/if}}
{{#if typeDel}}
< h2 > < del > {{__ compare.key}}< / del > < / h2 >
< table class = "del" >
2017-07-09 14:53:52 +02:00
< thead >
< tr >
< th style = "width: 30%" > {{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}< / th >
2017-10-16 11:33:14 +02:00
{{#if ../_hasType}}< th style = "width: 10%" > {{__ "Type"}}< / th > {{/if}}
2017-07-09 14:53:52 +02:00
< th style = "width: {{#if ../_hasType}}60%{{else}}70%{{/if}}" > {{__ "Description"}}< / th >
< / tr >
< / thead >
{{subTemplate "article-compare-param-block-body" source=compare.value compare=compare.value _hasType=../_hasType}}
2017-10-16 11:33:14 +02:00
< / table >
{{/if}}
{{/each_compare_keys}}
{{#if source.examples}}
< ul class = "nav nav-tabs nav-tabs-examples" >
{{#each_compare_title source.examples compare.examples}}
{{#if typeSame}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
2017-07-09 14:53:52 +02:00
< a href = "#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" > {{{showDiff source.title compare.title}}}< / a >
2017-10-16 11:33:14 +02:00
< / li >
{{/if}}
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{#if typeIns}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
< a href = "#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" > < ins > {{{source.title}}}< / ins > < / a >
< / li >
{{/if}}
{{#if typeDel}}
< li { { # if_eq index compare = 0}} class = "active" { { / if_eq } } >
< a href = "#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" > < del > {{{compare.title}}}< / del > < / a >
< / li >
{{/if}}
{{/each_compare_title}}
< / ul >
< div class = "tab-content" >
{{#each_compare_title source.examples compare.examples}}
{{#if typeSame}}
2017-07-09 14:53:52 +02:00
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{source.type}}" > < code > {{{showDiff source.content compare.content}}}< / code > < / pre >
< / div >
2017-10-16 11:33:14 +02:00
{{/if}}
{{#if typeIns}}
2017-07-09 14:53:52 +02:00
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{source.type}}" > < code > {{{source.content}}}< / code > < / pre >
< / div >
2017-10-16 11:33:14 +02:00
{{/if}}
{{#if typeDel}}
2017-07-09 14:53:52 +02:00
< div class = "tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id = "{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" >
< pre class = "prettyprint language-{{source.type}}" data-type = "{{compare.type}}" > < code > {{{compare.content}}}< / code > < / pre >
< / div >
2017-10-16 11:33:14 +02:00
{{/if}}
{{/each_compare_title}}
< / div >
{{/if}}
{{/if}}
< / script >
< script id = "template-article-compare-param-block-body" type = "text/x-handlebars-template" >
< tbody >
{{#each_compare_field source compare}}
{{#if typeSame}}
2017-07-09 14:53:52 +02:00
< tr >
< td class = "code" >
2017-10-16 11:33:14 +02:00
{{{splitFill source.field "." " "}}}
{{#if source.optional}}
{{#if compare.optional}} < span class = "label label-optional" > {{__ "optional"}}< / span >
{{else}} < span class = "label label-optional label-ins" > {{__ "optional"}}< / span >
{{/if}}
{{else}}
{{#if compare.optional}} < span class = "label label-optional label-del" > {{__ "optional"}}< / span > {{/if}}
{{/if}}
2017-07-09 14:53:52 +02:00
< / td >
2017-10-16 11:33:14 +02:00
{{#if source.type}}
{{#if compare.type}}
2017-07-09 14:53:52 +02:00
< td > {{{showDiff source.type compare.type}}}< / td >
{{else}}
< td > {{{source.type}}}< / td >
2017-10-16 11:33:14 +02:00
{{/if}}
{{else}}
{{#if compare.type}}
2017-07-09 14:53:52 +02:00
< td > {{{compare.type}}}< / td >
2017-10-16 11:33:14 +02:00
{{else}}
{{#if ../../../../_hasType}}< td > < / td > {{/if}}
{{/if}}
{{/if}}
2017-07-09 14:53:52 +02:00
< td >
2017-10-16 11:33:14 +02:00
{{{showDiff source.description compare.description "nl2br"}}}
{{#if source.defaultValue}}< p class = "default-value" > {{__ "Default value:"}} < code > {{{showDiff source.defaultValue compare.defaultValue}}}< / code > < p > {{/if}}
2017-07-09 14:53:52 +02:00
< / td >
< / tr >
2017-10-16 11:33:14 +02:00
{{/if}}
{{#if typeIns}}
2017-07-09 14:53:52 +02:00
< tr class = "ins" >
< td class = "code" >
2017-10-16 11:33:14 +02:00
{{{splitFill source.field "." " "}}}
{{#if source.optional}} < span class = "label label-optional label-ins" > {{__ "optional"}}< / span > {{/if}}
2017-07-09 14:53:52 +02:00
< / td >
2017-10-16 11:33:14 +02:00
{{#if source.type}}
2017-07-09 14:53:52 +02:00
< td > {{{source.type}}}< / td >
2017-10-16 11:33:14 +02:00
{{else}}
{{{typRowTd}}}
{{/if}}
2017-07-09 14:53:52 +02:00
< td >
2017-10-16 11:33:14 +02:00
{{{nl2br source.description}}}
{{#if source.defaultValue}}< p class = "default-value" > {{__ "Default value:"}} < code > {{{source.defaultValue}}}< / code > < p > {{/if}}
2017-07-09 14:53:52 +02:00
< / td >
< / tr >
2017-10-16 11:33:14 +02:00
{{/if}}
{{#if typeDel}}
2017-07-09 14:53:52 +02:00
< tr class = "del" >
< td class = "code" >
2017-10-16 11:33:14 +02:00
{{{splitFill compare.field "." " "}}}
{{#if compare.optional}} < span class = "label label-optional label-del" > {{__ "optional"}}< / span > {{/if}}
2017-07-09 14:53:52 +02:00
< / td >
2017-10-16 11:33:14 +02:00
{{#if compare.type}}
2017-07-09 14:53:52 +02:00
< td > {{{compare.type}}}< / td >
2017-10-16 11:33:14 +02:00
{{else}}
{{{typRowTd}}}
{{/if}}
2017-07-09 14:53:52 +02:00
< td >
2017-10-16 11:33:14 +02:00
{{{nl2br compare.description}}}
{{#if compare.defaultValue}}< p class = "default-value" > {{__ "Default value:"}} < code > {{{compare.defaultValue}}}< / code > < p > {{/if}}
2017-07-09 14:53:52 +02:00
< / td >
< / tr >
2017-10-16 11:33:14 +02:00
{{/if}}
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
{{/each_compare_field}}
< / tbody >
< / script >
< div class = "container-fluid" >
< div class = "row" >
< div id = "sidenav" class = "span2" > < / div >
< div id = "content" >
< div id = "project" > < / div >
< div id = "header" > < / div >
< div id = "sections" > < / div >
< div id = "footer" > < / div >
< div id = "generator" > < / div >
2017-07-09 14:53:52 +02:00
< / div >
2017-10-16 11:33:14 +02:00
< / div >
< / div >
2017-07-09 14:53:52 +02:00
2017-10-16 11:33:14 +02:00
< div id = "loader" >
< div class = "spinner" >
< div class = "spinner-container container1" >
< div class = "circle1" > < / div > < div class = "circle2" > < / div > < div class = "circle3" > < / div > < div class = "circle4" > < / div >
< / div >
< div class = "spinner-container container2" >
< div class = "circle1" > < / div > < div class = "circle2" > < / div > < div class = "circle3" > < / div > < div class = "circle4" > < / div >
< / div >
< div class = "spinner-container container3" >
< div class = "circle1" > < / div > < div class = "circle2" > < / div > < div class = "circle3" > < / div > < div class = "circle4" > < / div >
< / div >
< p > Loading...< / p >
< / div >
< / div >
2017-07-23 07:46:29 +02:00
2017-10-16 11:33:14 +02:00
< script data-main = "main.js" src = "vendor/require.min.js" > < / script >
< / body >
2017-07-09 14:53:52 +02:00
< / html >