Merge pull request #1486 from rest4hub/develop_2.0
Missing some data-sw-translation
This commit is contained in:
1
dist/lang/en.js
vendored
1
dist/lang/en.js
vendored
@@ -21,6 +21,7 @@ window.SwaggerTranslator.learn({
|
|||||||
"Response Code":"Response Code",
|
"Response Code":"Response Code",
|
||||||
"Response Headers":"Response Headers",
|
"Response Headers":"Response Headers",
|
||||||
"Hide Response":"Hide Response",
|
"Hide Response":"Hide Response",
|
||||||
|
"Headers":"Headers",
|
||||||
"Try it out!":"Try it out!",
|
"Try it out!":"Try it out!",
|
||||||
"Show/Hide":"Show/Hide",
|
"Show/Hide":"Show/Hide",
|
||||||
"List Operations":"List Operations",
|
"List Operations":"List Operations",
|
||||||
|
|||||||
1
dist/lang/pt.js
vendored
1
dist/lang/pt.js
vendored
@@ -20,6 +20,7 @@ window.SwaggerTranslator.learn({
|
|||||||
"Response Body":"Corpo da resposta",
|
"Response Body":"Corpo da resposta",
|
||||||
"Response Code":"Código da resposta",
|
"Response Code":"Código da resposta",
|
||||||
"Response Headers":"Cabeçalho da resposta",
|
"Response Headers":"Cabeçalho da resposta",
|
||||||
|
"Headers":"Cabeçalhos",
|
||||||
"Hide Response":"Esconder resposta",
|
"Hide Response":"Esconder resposta",
|
||||||
"Try it out!":"Tente agora!",
|
"Try it out!":"Tente agora!",
|
||||||
"Show/Hide":"Mostrar/Esconder",
|
"Show/Hide":"Mostrar/Esconder",
|
||||||
|
|||||||
748
dist/swagger-ui.js
vendored
748
dist/swagger-ui.js
vendored
@@ -4,7 +4,277 @@
|
|||||||
* @link http://swagger.io
|
* @link http://swagger.io
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
(function(){this["Handlebars"] = this["Handlebars"] || {};
|
(function(){'use strict';
|
||||||
|
|
||||||
|
window.SwaggerUi = Backbone.Router.extend({
|
||||||
|
|
||||||
|
dom_id: 'swagger_ui',
|
||||||
|
|
||||||
|
// Attributes
|
||||||
|
options: null,
|
||||||
|
api: null,
|
||||||
|
headerView: null,
|
||||||
|
mainView: null,
|
||||||
|
|
||||||
|
// SwaggerUi accepts all the same options as SwaggerApi
|
||||||
|
initialize: function(options) {
|
||||||
|
options = options || {};
|
||||||
|
if(!options.highlightSizeThreshold) {
|
||||||
|
options.highlightSizeThreshold = 100000;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow dom_id to be overridden
|
||||||
|
if (options.dom_id) {
|
||||||
|
this.dom_id = options.dom_id;
|
||||||
|
delete options.dom_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!options.supportedSubmitMethods){
|
||||||
|
options.supportedSubmitMethods = [
|
||||||
|
'get',
|
||||||
|
'put',
|
||||||
|
'post',
|
||||||
|
'delete',
|
||||||
|
'head',
|
||||||
|
'options',
|
||||||
|
'patch'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.oauth2RedirectUrl === 'string') {
|
||||||
|
window.oAuthRedirectUrl = options.redirectUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create an empty div which contains the dom_id
|
||||||
|
if (! $('#' + this.dom_id).length){
|
||||||
|
$('body').append('<div id="' + this.dom_id + '"></div>') ;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.options = options;
|
||||||
|
|
||||||
|
// set marked options
|
||||||
|
marked.setOptions({gfm: true});
|
||||||
|
|
||||||
|
// Set the callbacks
|
||||||
|
var that = this;
|
||||||
|
this.options.success = function() { return that.render(); };
|
||||||
|
this.options.progress = function(d) { return that.showMessage(d); };
|
||||||
|
this.options.failure = function(d) { return that.onLoadFailure(d); };
|
||||||
|
|
||||||
|
// Create view to handle the header inputs
|
||||||
|
this.headerView = new SwaggerUi.Views.HeaderView({el: $('#header')});
|
||||||
|
|
||||||
|
// Event handler for when the baseUrl/apiKey is entered by user
|
||||||
|
this.headerView.on('update-swagger-ui', function(data) {
|
||||||
|
return that.updateSwaggerUi(data);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// Set an option after initializing
|
||||||
|
setOption: function(option, value) {
|
||||||
|
this.options[option] = value;
|
||||||
|
},
|
||||||
|
|
||||||
|
// Get the value of a previously set option
|
||||||
|
getOption: function(option) {
|
||||||
|
return this.options[option];
|
||||||
|
},
|
||||||
|
|
||||||
|
// Event handler for when url/key is received from user
|
||||||
|
updateSwaggerUi: function(data){
|
||||||
|
this.options.url = data.url;
|
||||||
|
this.load();
|
||||||
|
},
|
||||||
|
|
||||||
|
// Create an api and render
|
||||||
|
load: function(){
|
||||||
|
// Initialize the API object
|
||||||
|
if (this.mainView) {
|
||||||
|
this.mainView.clear();
|
||||||
|
}
|
||||||
|
var url = this.options.url;
|
||||||
|
if (url && url.indexOf('http') !== 0) {
|
||||||
|
url = this.buildUrl(window.location.href.toString(), url);
|
||||||
|
}
|
||||||
|
if(this.api) {
|
||||||
|
this.options.authorizations = this.api.clientAuthorizations.authz;
|
||||||
|
}
|
||||||
|
this.options.url = url;
|
||||||
|
this.headerView.update(url);
|
||||||
|
|
||||||
|
this.api = new SwaggerClient(this.options);
|
||||||
|
},
|
||||||
|
|
||||||
|
// collapse all sections
|
||||||
|
collapseAll: function(){
|
||||||
|
Docs.collapseEndpointListForResource('');
|
||||||
|
},
|
||||||
|
|
||||||
|
// list operations for all sections
|
||||||
|
listAll: function(){
|
||||||
|
Docs.collapseOperationsForResource('');
|
||||||
|
},
|
||||||
|
|
||||||
|
// expand operations for all sections
|
||||||
|
expandAll: function(){
|
||||||
|
Docs.expandOperationsForResource('');
|
||||||
|
},
|
||||||
|
|
||||||
|
// This is bound to success handler for SwaggerApi
|
||||||
|
// so it gets called when SwaggerApi completes loading
|
||||||
|
render: function(){
|
||||||
|
this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...');
|
||||||
|
this.mainView = new SwaggerUi.Views.MainView({
|
||||||
|
model: this.api,
|
||||||
|
el: $('#' + this.dom_id),
|
||||||
|
swaggerOptions: this.options,
|
||||||
|
router: this
|
||||||
|
}).render();
|
||||||
|
this.showMessage();
|
||||||
|
switch (this.options.docExpansion) {
|
||||||
|
case 'full':
|
||||||
|
this.expandAll(); break;
|
||||||
|
case 'list':
|
||||||
|
this.listAll(); break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
this.renderGFM();
|
||||||
|
|
||||||
|
if (this.options.onComplete){
|
||||||
|
this.options.onComplete(this.api, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(Docs.shebang.bind(this), 100);
|
||||||
|
},
|
||||||
|
|
||||||
|
buildUrl: function(base, url){
|
||||||
|
if (url.indexOf('/') === 0) {
|
||||||
|
var parts = base.split('/');
|
||||||
|
base = parts[0] + '//' + parts[2];
|
||||||
|
return base + url;
|
||||||
|
} else {
|
||||||
|
var endOfPath = base.length;
|
||||||
|
|
||||||
|
if (base.indexOf('?') > -1){
|
||||||
|
endOfPath = Math.min(endOfPath, base.indexOf('?'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (base.indexOf('#') > -1){
|
||||||
|
endOfPath = Math.min(endOfPath, base.indexOf('#'));
|
||||||
|
}
|
||||||
|
|
||||||
|
base = base.substring(0, endOfPath);
|
||||||
|
|
||||||
|
if (base.indexOf('/', base.length - 1 ) !== -1){
|
||||||
|
return base + url;
|
||||||
|
}
|
||||||
|
|
||||||
|
return base + '/' + url;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Shows message on topbar of the ui
|
||||||
|
showMessage: function(data){
|
||||||
|
if (data === undefined) {
|
||||||
|
data = '';
|
||||||
|
}
|
||||||
|
var $msgbar = $('#message-bar');
|
||||||
|
$msgbar.removeClass('message-fail');
|
||||||
|
$msgbar.addClass('message-success');
|
||||||
|
$msgbar.html(data);
|
||||||
|
if(window.SwaggerTranslator) {
|
||||||
|
window.SwaggerTranslator.translate($msgbar);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// shows message in red
|
||||||
|
onLoadFailure: function(data){
|
||||||
|
if (data === undefined) {
|
||||||
|
data = '';
|
||||||
|
}
|
||||||
|
$('#message-bar').removeClass('message-success');
|
||||||
|
$('#message-bar').addClass('message-fail');
|
||||||
|
|
||||||
|
var val = $('#message-bar').text(data);
|
||||||
|
|
||||||
|
if (this.options.onFailure) {
|
||||||
|
this.options.onFailure(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
return val;
|
||||||
|
},
|
||||||
|
|
||||||
|
// Renders GFM for elements with 'markdown' class
|
||||||
|
renderGFM: function(){
|
||||||
|
$('.markdown').each(function(){
|
||||||
|
$(this).html(marked($(this).html()));
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.propDesc', '.model-signature .description').each(function () {
|
||||||
|
$(this).html(marked($(this).html())).addClass('markdown');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
window.SwaggerUi.Views = {};
|
||||||
|
|
||||||
|
// don't break backward compatibility with previous versions and warn users to upgrade their code
|
||||||
|
(function(){
|
||||||
|
window.authorizations = {
|
||||||
|
add: function() {
|
||||||
|
warn('Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add().');
|
||||||
|
|
||||||
|
if (typeof window.swaggerUi === 'undefined') {
|
||||||
|
throw new TypeError('window.swaggerUi is not defined');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (window.swaggerUi instanceof SwaggerUi) {
|
||||||
|
window.swaggerUi.api.clientAuthorizations.add.apply(window.swaggerUi.api.clientAuthorizations, arguments);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
window.ApiKeyAuthorization = function() {
|
||||||
|
warn('window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization.');
|
||||||
|
SwaggerClient.ApiKeyAuthorization.apply(window, arguments);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.PasswordAuthorization = function() {
|
||||||
|
warn('window.PasswordAuthorization is deprecated. Please use SwaggerClient.PasswordAuthorization.');
|
||||||
|
SwaggerClient.PasswordAuthorization.apply(window, arguments);
|
||||||
|
};
|
||||||
|
|
||||||
|
function warn(message) {
|
||||||
|
if ('console' in window && typeof window.console.warn === 'function') {
|
||||||
|
console.warn(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
// UMD
|
||||||
|
(function (root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['b'], function (b) {
|
||||||
|
return (root.SwaggerUi = factory(b));
|
||||||
|
});
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node. Does not work with strict CommonJS, but
|
||||||
|
// only CommonJS-like environments that support module.exports,
|
||||||
|
// like Node.
|
||||||
|
module.exports = factory(require('b'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
root.SwaggerUi = factory(root.b);
|
||||||
|
}
|
||||||
|
}(this, function () {
|
||||||
|
return SwaggerUi;
|
||||||
|
}));
|
||||||
|
|
||||||
|
this["Handlebars"] = this["Handlebars"] || {};
|
||||||
this["Handlebars"]["templates"] = this["Handlebars"]["templates"] || {};
|
this["Handlebars"]["templates"] = this["Handlebars"]["templates"] || {};
|
||||||
this["Handlebars"]["templates"]["apikey_button_view"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
this["Handlebars"]["templates"]["apikey_button_view"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
@@ -31,7 +301,7 @@ this["Handlebars"]["templates"]["content_type"] = Handlebars.template({"1":funct
|
|||||||
},"4":function(depth0,helpers,partials,data) {
|
},"4":function(depth0,helpers,partials,data) {
|
||||||
return " <option value=\"application/json\">application/json</option>\n";
|
return " <option value=\"application/json\">application/json</option>\n";
|
||||||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<label for=\""
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<label data-sw-translate for=\""
|
||||||
+ escapeExpression(((helper = (helper = helpers.contentTypeId || (depth0 != null ? depth0.contentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"contentTypeId","hash":{},"data":data}) : helper)))
|
+ escapeExpression(((helper = (helper = helpers.contentTypeId || (depth0 != null ? depth0.contentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"contentTypeId","hash":{},"data":data}) : helper)))
|
||||||
+ "\">Response Content Type</label>\n<select name=\"contentType\" id=\""
|
+ "\">Response Content Type</label>\n<select name=\"contentType\" id=\""
|
||||||
+ escapeExpression(((helper = (helper = helpers.contentTypeId || (depth0 != null ? depth0.contentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"contentTypeId","hash":{},"data":data}) : helper)))
|
+ escapeExpression(((helper = (helper = helpers.contentTypeId || (depth0 != null ? depth0.contentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"contentTypeId","hash":{},"data":data}) : helper)))
|
||||||
@@ -417,13 +687,13 @@ this["Handlebars"]["templates"]["operation"] = Handlebars.template({"1":function
|
|||||||
+ escapeExpression(((helper = (helper = helpers.successCode || (depth0 != null ? depth0.successCode : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"successCode","hash":{},"data":data}) : helper)))
|
+ escapeExpression(((helper = (helper = helpers.successCode || (depth0 != null ? depth0.successCode : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"successCode","hash":{},"data":data}) : helper)))
|
||||||
+ ")</h4>\n <p><span class=\"model-signature\" /></p>\n <br/>\n <div class=\"response-content-type\" />\n";
|
+ ")</h4>\n <p><span class=\"model-signature\" /></p>\n <br/>\n <div class=\"response-content-type\" />\n";
|
||||||
},"18":function(depth0,helpers,partials,data) {
|
},"18":function(depth0,helpers,partials,data) {
|
||||||
return " <h4>Parameters</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th style=\"width: 100px; max-width: 100px\">Parameter</th>\n <th style=\"width: 310px; max-width: 310px\">Value</th>\n <th style=\"width: 200px; max-width: 200px\">Description</th>\n <th style=\"width: 100px; max-width: 100px\">Parameter Type</th>\n <th style=\"width: 220px; max-width: 230px\">Data Type</th>\n </tr>\n </thead>\n <tbody class=\"operation-params\">\n\n </tbody>\n </table>\n";
|
return " <h4 data-sw-translate>Parameters</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th style=\"width: 100px; max-width: 100px\" data-sw-translate>Parameter</th>\n <th style=\"width: 310px; max-width: 310px\" data-sw-translate>Value</th>\n <th style=\"width: 200px; max-width: 200px\" data-sw-translate>Description</th>\n <th style=\"width: 100px; max-width: 100px\" data-sw-translate>Parameter Type</th>\n <th style=\"width: 220px; max-width: 230px\" data-sw-translate>Data Type</th>\n </tr>\n </thead>\n <tbody class=\"operation-params\">\n\n </tbody>\n </table>\n";
|
||||||
},"20":function(depth0,helpers,partials,data) {
|
},"20":function(depth0,helpers,partials,data) {
|
||||||
return " <div style='margin:0;padding:0;display:inline'></div>\n <h4>Response Messages</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n <th>Response Model</th>\n <th>Headers</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n\n </tbody>\n </table>\n";
|
return " <div style='margin:0;padding:0;display:inline'></div>\n <h4 data-sw-translate>Response Messages</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th data-sw-translate>HTTP Status Code</th>\n <th data-sw-translate>Reason</th>\n <th data-sw-translate>Response Model</th>\n <th data-sw-translate>Headers</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n\n </tbody>\n </table>\n";
|
||||||
},"22":function(depth0,helpers,partials,data) {
|
},"22":function(depth0,helpers,partials,data) {
|
||||||
return "";
|
return "";
|
||||||
},"24":function(depth0,helpers,partials,data) {
|
},"24":function(depth0,helpers,partials,data) {
|
||||||
return " <div class='sandbox_header'>\n <input class='submit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <span class='response_throbber' style='display:none'></span>\n </div>\n";
|
return " <div class='sandbox_header'>\n <input class='submit' type='button' value='Try it out!' data-sw-translate/>\n <a href='#' class='response_hider' style='display:none' data-sw-translate>Hide Response</a>\n <span class='response_throbber' style='display:none'></span>\n </div>\n";
|
||||||
},"26":function(depth0,helpers,partials,data) {
|
},"26":function(depth0,helpers,partials,data) {
|
||||||
return " <h4 data-sw-translate>Request Headers</h4>\n <div class='block request_headers'></div>\n";
|
return " <h4 data-sw-translate>Request Headers</h4>\n <div class='block request_headers'></div>\n";
|
||||||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
@@ -492,6 +762,67 @@ this["Handlebars"]["templates"]["operation"] = Handlebars.template({"1":function
|
|||||||
if (stack1 != null) { buffer += stack1; }
|
if (stack1 != null) { buffer += stack1; }
|
||||||
return buffer + " <h4 data-sw-translate>Response Body</h4>\n <div class='block response_body'></div>\n <h4 data-sw-translate>Response Code</h4>\n <div class='block response_code'></div>\n <h4 data-sw-translate>Response Headers</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n";
|
return buffer + " <h4 data-sw-translate>Response Body</h4>\n <div class='block response_body'></div>\n <h4 data-sw-translate>Response Code</h4>\n <div class='block response_code'></div>\n <h4 data-sw-translate>Response Headers</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n";
|
||||||
},"useData":true});
|
},"useData":true});
|
||||||
|
this["Handlebars"]["templates"]["param"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, buffer = "";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer;
|
||||||
|
},"2":function(depth0,helpers,partials,data) {
|
||||||
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
|
return " <input type=\"file\" name='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "' id='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'/>\n <div class=\"parameter-content-type\" />\n";
|
||||||
|
},"4":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, buffer = "";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0['default'] : depth0), {"name":"if","hash":{},"fn":this.program(5, data),"inverse":this.program(7, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer;
|
||||||
|
},"5":function(depth0,helpers,partials,data) {
|
||||||
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
|
return " <textarea class='body-textarea' name='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "' id='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'>"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
||||||
|
+ "</textarea>\n <br />\n <div class=\"parameter-content-type\" />\n";
|
||||||
|
},"7":function(depth0,helpers,partials,data) {
|
||||||
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
|
return " <textarea class='body-textarea' name='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "' id='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'></textarea>\n <br />\n <div class=\"parameter-content-type\" />\n";
|
||||||
|
},"9":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, buffer = "";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(10, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer;
|
||||||
|
},"10":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, helperMissing=helpers.helperMissing, buffer = "";
|
||||||
|
stack1 = ((helpers.renderTextParam || (depth0 && depth0.renderTextParam) || helperMissing).call(depth0, depth0, {"name":"renderTextParam","hash":{},"fn":this.program(11, data),"inverse":this.noop,"data":data}));
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer;
|
||||||
|
},"11":function(depth0,helpers,partials,data) {
|
||||||
|
return "";
|
||||||
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<td class='code'><label for='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'>"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "</label></td>\n<td>\n\n";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isBody : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.program(9, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
buffer += "\n</td>\n<td class=\"markdown\">";
|
||||||
|
stack1 = ((helper = (helper = helpers.description || (depth0 != null ? depth0.description : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"description","hash":{},"data":data}) : helper));
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
buffer += "</td>\n<td>";
|
||||||
|
stack1 = ((helper = (helper = helpers.paramType || (depth0 != null ? depth0.paramType : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"paramType","hash":{},"data":data}) : helper));
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer + "</td>\n<td>\n <span class=\"model-signature\"></span>\n</td>\n";
|
||||||
|
},"useData":true});
|
||||||
this["Handlebars"]["templates"]["param_list"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
this["Handlebars"]["templates"]["param_list"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
return " required";
|
return " required";
|
||||||
},"3":function(depth0,helpers,partials,data) {
|
},"3":function(depth0,helpers,partials,data) {
|
||||||
@@ -561,43 +892,6 @@ this["Handlebars"]["templates"]["param_list"] = Handlebars.template({"1":functio
|
|||||||
if (stack1 != null) { buffer += stack1; }
|
if (stack1 != null) { buffer += stack1; }
|
||||||
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
||||||
},"useData":true});
|
},"useData":true});
|
||||||
this["Handlebars"]["templates"]["param_readonly_required"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
||||||
return " <textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "' id='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'>"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
|
||||||
+ "</textarea>\n";
|
|
||||||
},"3":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, buffer = "";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0['default'] : depth0), {"name":"if","hash":{},"fn":this.program(4, data),"inverse":this.program(6, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer;
|
|
||||||
},"4":function(depth0,helpers,partials,data) {
|
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
||||||
return " "
|
|
||||||
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
|
||||||
+ "\n";
|
|
||||||
},"6":function(depth0,helpers,partials,data) {
|
|
||||||
return " (empty)\n";
|
|
||||||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<td class='code required'><label for='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'>"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "</label></td>\n<td>\n";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isBody : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.program(3, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
buffer += "</td>\n<td class=\"markdown\">";
|
|
||||||
stack1 = ((helper = (helper = helpers.description || (depth0 != null ? depth0.description : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"description","hash":{},"data":data}) : helper));
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
buffer += "</td>\n<td>";
|
|
||||||
stack1 = ((helper = (helper = helpers.paramType || (depth0 != null ? depth0.paramType : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"paramType","hash":{},"data":data}) : helper));
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
|
||||||
},"useData":true});
|
|
||||||
this["Handlebars"]["templates"]["param_readonly"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
this["Handlebars"]["templates"]["param_readonly"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
return " <textarea class='body-textarea' readonly='readonly' name='"
|
return " <textarea class='body-textarea' readonly='readonly' name='"
|
||||||
@@ -635,6 +929,43 @@ this["Handlebars"]["templates"]["param_readonly"] = Handlebars.template({"1":fun
|
|||||||
if (stack1 != null) { buffer += stack1; }
|
if (stack1 != null) { buffer += stack1; }
|
||||||
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
||||||
},"useData":true});
|
},"useData":true});
|
||||||
|
this["Handlebars"]["templates"]["param_readonly_required"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
|
return " <textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "' id='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'>"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
||||||
|
+ "</textarea>\n";
|
||||||
|
},"3":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, buffer = "";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0['default'] : depth0), {"name":"if","hash":{},"fn":this.program(4, data),"inverse":this.program(6, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer;
|
||||||
|
},"4":function(depth0,helpers,partials,data) {
|
||||||
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
||||||
|
return " "
|
||||||
|
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
||||||
|
+ "\n";
|
||||||
|
},"6":function(depth0,helpers,partials,data) {
|
||||||
|
return " (empty)\n";
|
||||||
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<td class='code required'><label for='"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
||||||
|
+ "'>"
|
||||||
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
||||||
|
+ "</label></td>\n<td>\n";
|
||||||
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isBody : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.program(3, data),"data":data});
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
buffer += "</td>\n<td class=\"markdown\">";
|
||||||
|
stack1 = ((helper = (helper = helpers.description || (depth0 != null ? depth0.description : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"description","hash":{},"data":data}) : helper));
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
buffer += "</td>\n<td>";
|
||||||
|
stack1 = ((helper = (helper = helpers.paramType || (depth0 != null ? depth0.paramType : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"paramType","hash":{},"data":data}) : helper));
|
||||||
|
if (stack1 != null) { buffer += stack1; }
|
||||||
|
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
||||||
|
},"useData":true});
|
||||||
this["Handlebars"]["templates"]["param_required"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
this["Handlebars"]["templates"]["param_required"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
var stack1, buffer = "";
|
var stack1, buffer = "";
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data});
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data});
|
||||||
@@ -703,67 +1034,6 @@ this["Handlebars"]["templates"]["param_required"] = Handlebars.template({"1":fun
|
|||||||
if (stack1 != null) { buffer += stack1; }
|
if (stack1 != null) { buffer += stack1; }
|
||||||
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
return buffer + "</td>\n<td><span class=\"model-signature\"></span></td>\n";
|
||||||
},"useData":true});
|
},"useData":true});
|
||||||
this["Handlebars"]["templates"]["param"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, buffer = "";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer;
|
|
||||||
},"2":function(depth0,helpers,partials,data) {
|
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
||||||
return " <input type=\"file\" name='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "' id='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'/>\n <div class=\"parameter-content-type\" />\n";
|
|
||||||
},"4":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, buffer = "";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0['default'] : depth0), {"name":"if","hash":{},"fn":this.program(5, data),"inverse":this.program(7, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer;
|
|
||||||
},"5":function(depth0,helpers,partials,data) {
|
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
||||||
return " <textarea class='body-textarea' name='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "' id='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'>"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper)))
|
|
||||||
+ "</textarea>\n <br />\n <div class=\"parameter-content-type\" />\n";
|
|
||||||
},"7":function(depth0,helpers,partials,data) {
|
|
||||||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
||||||
return " <textarea class='body-textarea' name='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "' id='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'></textarea>\n <br />\n <div class=\"parameter-content-type\" />\n";
|
|
||||||
},"9":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, buffer = "";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isFile : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(10, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer;
|
|
||||||
},"10":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, helperMissing=helpers.helperMissing, buffer = "";
|
|
||||||
stack1 = ((helpers.renderTextParam || (depth0 && depth0.renderTextParam) || helperMissing).call(depth0, depth0, {"name":"renderTextParam","hash":{},"fn":this.program(11, data),"inverse":this.noop,"data":data}));
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer;
|
|
||||||
},"11":function(depth0,helpers,partials,data) {
|
|
||||||
return "";
|
|
||||||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
||||||
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<td class='code'><label for='"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.valueId || (depth0 != null ? depth0.valueId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"valueId","hash":{},"data":data}) : helper)))
|
|
||||||
+ "'>"
|
|
||||||
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
||||||
+ "</label></td>\n<td>\n\n";
|
|
||||||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.isBody : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.program(9, data),"data":data});
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
buffer += "\n</td>\n<td class=\"markdown\">";
|
|
||||||
stack1 = ((helper = (helper = helpers.description || (depth0 != null ? depth0.description : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"description","hash":{},"data":data}) : helper));
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
buffer += "</td>\n<td>";
|
|
||||||
stack1 = ((helper = (helper = helpers.paramType || (depth0 != null ? depth0.paramType : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"paramType","hash":{},"data":data}) : helper));
|
|
||||||
if (stack1 != null) { buffer += stack1; }
|
|
||||||
return buffer + "</td>\n<td>\n <span class=\"model-signature\"></span>\n</td>\n";
|
|
||||||
},"useData":true});
|
|
||||||
this["Handlebars"]["templates"]["parameter_content_type"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
this["Handlebars"]["templates"]["parameter_content_type"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
|
||||||
var stack1, buffer = "";
|
var stack1, buffer = "";
|
||||||
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.consumes : depth0), {"name":"each","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.consumes : depth0), {"name":"each","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
|
||||||
@@ -842,7 +1112,7 @@ this["Handlebars"]["templates"]["response_content_type"] = Handlebars.template({
|
|||||||
},"4":function(depth0,helpers,partials,data) {
|
},"4":function(depth0,helpers,partials,data) {
|
||||||
return " <option value=\"application/json\">application/json</option>\n";
|
return " <option value=\"application/json\">application/json</option>\n";
|
||||||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
||||||
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<label for=\""
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<label data-sw-translate for=\""
|
||||||
+ escapeExpression(((helper = (helper = helpers.responseContentTypeId || (depth0 != null ? depth0.responseContentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"responseContentTypeId","hash":{},"data":data}) : helper)))
|
+ escapeExpression(((helper = (helper = helpers.responseContentTypeId || (depth0 != null ? depth0.responseContentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"responseContentTypeId","hash":{},"data":data}) : helper)))
|
||||||
+ "\">Response Content Type</label>\n<select name=\"responseContentType\" id=\""
|
+ "\">Response Content Type</label>\n<select name=\"responseContentType\" id=\""
|
||||||
+ escapeExpression(((helper = (helper = helpers.responseContentTypeId || (depth0 != null ? depth0.responseContentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"responseContentTypeId","hash":{},"data":data}) : helper)))
|
+ escapeExpression(((helper = (helper = helpers.responseContentTypeId || (depth0 != null ? depth0.responseContentTypeId : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"responseContentTypeId","hash":{},"data":data}) : helper)))
|
||||||
@@ -30583,276 +30853,6 @@ module.exports = function(arr, fn, initial){
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.SwaggerUi = Backbone.Router.extend({
|
|
||||||
|
|
||||||
dom_id: 'swagger_ui',
|
|
||||||
|
|
||||||
// Attributes
|
|
||||||
options: null,
|
|
||||||
api: null,
|
|
||||||
headerView: null,
|
|
||||||
mainView: null,
|
|
||||||
|
|
||||||
// SwaggerUi accepts all the same options as SwaggerApi
|
|
||||||
initialize: function(options) {
|
|
||||||
options = options || {};
|
|
||||||
if(!options.highlightSizeThreshold) {
|
|
||||||
options.highlightSizeThreshold = 100000;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Allow dom_id to be overridden
|
|
||||||
if (options.dom_id) {
|
|
||||||
this.dom_id = options.dom_id;
|
|
||||||
delete options.dom_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!options.supportedSubmitMethods){
|
|
||||||
options.supportedSubmitMethods = [
|
|
||||||
'get',
|
|
||||||
'put',
|
|
||||||
'post',
|
|
||||||
'delete',
|
|
||||||
'head',
|
|
||||||
'options',
|
|
||||||
'patch'
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof options.oauth2RedirectUrl === 'string') {
|
|
||||||
window.oAuthRedirectUrl = options.redirectUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create an empty div which contains the dom_id
|
|
||||||
if (! $('#' + this.dom_id).length){
|
|
||||||
$('body').append('<div id="' + this.dom_id + '"></div>') ;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.options = options;
|
|
||||||
|
|
||||||
// set marked options
|
|
||||||
marked.setOptions({gfm: true});
|
|
||||||
|
|
||||||
// Set the callbacks
|
|
||||||
var that = this;
|
|
||||||
this.options.success = function() { return that.render(); };
|
|
||||||
this.options.progress = function(d) { return that.showMessage(d); };
|
|
||||||
this.options.failure = function(d) { return that.onLoadFailure(d); };
|
|
||||||
|
|
||||||
// Create view to handle the header inputs
|
|
||||||
this.headerView = new SwaggerUi.Views.HeaderView({el: $('#header')});
|
|
||||||
|
|
||||||
// Event handler for when the baseUrl/apiKey is entered by user
|
|
||||||
this.headerView.on('update-swagger-ui', function(data) {
|
|
||||||
return that.updateSwaggerUi(data);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
// Set an option after initializing
|
|
||||||
setOption: function(option, value) {
|
|
||||||
this.options[option] = value;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Get the value of a previously set option
|
|
||||||
getOption: function(option) {
|
|
||||||
return this.options[option];
|
|
||||||
},
|
|
||||||
|
|
||||||
// Event handler for when url/key is received from user
|
|
||||||
updateSwaggerUi: function(data){
|
|
||||||
this.options.url = data.url;
|
|
||||||
this.load();
|
|
||||||
},
|
|
||||||
|
|
||||||
// Create an api and render
|
|
||||||
load: function(){
|
|
||||||
// Initialize the API object
|
|
||||||
if (this.mainView) {
|
|
||||||
this.mainView.clear();
|
|
||||||
}
|
|
||||||
var url = this.options.url;
|
|
||||||
if (url && url.indexOf('http') !== 0) {
|
|
||||||
url = this.buildUrl(window.location.href.toString(), url);
|
|
||||||
}
|
|
||||||
if(this.api) {
|
|
||||||
this.options.authorizations = this.api.clientAuthorizations.authz;
|
|
||||||
}
|
|
||||||
this.options.url = url;
|
|
||||||
this.headerView.update(url);
|
|
||||||
|
|
||||||
this.api = new SwaggerClient(this.options);
|
|
||||||
},
|
|
||||||
|
|
||||||
// collapse all sections
|
|
||||||
collapseAll: function(){
|
|
||||||
Docs.collapseEndpointListForResource('');
|
|
||||||
},
|
|
||||||
|
|
||||||
// list operations for all sections
|
|
||||||
listAll: function(){
|
|
||||||
Docs.collapseOperationsForResource('');
|
|
||||||
},
|
|
||||||
|
|
||||||
// expand operations for all sections
|
|
||||||
expandAll: function(){
|
|
||||||
Docs.expandOperationsForResource('');
|
|
||||||
},
|
|
||||||
|
|
||||||
// This is bound to success handler for SwaggerApi
|
|
||||||
// so it gets called when SwaggerApi completes loading
|
|
||||||
render: function(){
|
|
||||||
this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...');
|
|
||||||
this.mainView = new SwaggerUi.Views.MainView({
|
|
||||||
model: this.api,
|
|
||||||
el: $('#' + this.dom_id),
|
|
||||||
swaggerOptions: this.options,
|
|
||||||
router: this
|
|
||||||
}).render();
|
|
||||||
this.showMessage();
|
|
||||||
switch (this.options.docExpansion) {
|
|
||||||
case 'full':
|
|
||||||
this.expandAll(); break;
|
|
||||||
case 'list':
|
|
||||||
this.listAll(); break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
this.renderGFM();
|
|
||||||
|
|
||||||
if (this.options.onComplete){
|
|
||||||
this.options.onComplete(this.api, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(Docs.shebang.bind(this), 100);
|
|
||||||
},
|
|
||||||
|
|
||||||
buildUrl: function(base, url){
|
|
||||||
if (url.indexOf('/') === 0) {
|
|
||||||
var parts = base.split('/');
|
|
||||||
base = parts[0] + '//' + parts[2];
|
|
||||||
return base + url;
|
|
||||||
} else {
|
|
||||||
var endOfPath = base.length;
|
|
||||||
|
|
||||||
if (base.indexOf('?') > -1){
|
|
||||||
endOfPath = Math.min(endOfPath, base.indexOf('?'));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (base.indexOf('#') > -1){
|
|
||||||
endOfPath = Math.min(endOfPath, base.indexOf('#'));
|
|
||||||
}
|
|
||||||
|
|
||||||
base = base.substring(0, endOfPath);
|
|
||||||
|
|
||||||
if (base.indexOf('/', base.length - 1 ) !== -1){
|
|
||||||
return base + url;
|
|
||||||
}
|
|
||||||
|
|
||||||
return base + '/' + url;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Shows message on topbar of the ui
|
|
||||||
showMessage: function(data){
|
|
||||||
if (data === undefined) {
|
|
||||||
data = '';
|
|
||||||
}
|
|
||||||
var $msgbar = $('#message-bar');
|
|
||||||
$msgbar.removeClass('message-fail');
|
|
||||||
$msgbar.addClass('message-success');
|
|
||||||
$msgbar.html(data);
|
|
||||||
if(window.SwaggerTranslator) {
|
|
||||||
window.SwaggerTranslator.translate($msgbar);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// shows message in red
|
|
||||||
onLoadFailure: function(data){
|
|
||||||
if (data === undefined) {
|
|
||||||
data = '';
|
|
||||||
}
|
|
||||||
$('#message-bar').removeClass('message-success');
|
|
||||||
$('#message-bar').addClass('message-fail');
|
|
||||||
|
|
||||||
var val = $('#message-bar').text(data);
|
|
||||||
|
|
||||||
if (this.options.onFailure) {
|
|
||||||
this.options.onFailure(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
return val;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Renders GFM for elements with 'markdown' class
|
|
||||||
renderGFM: function(){
|
|
||||||
$('.markdown').each(function(){
|
|
||||||
$(this).html(marked($(this).html()));
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.propDesc', '.model-signature .description').each(function () {
|
|
||||||
$(this).html(marked($(this).html())).addClass('markdown');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
window.SwaggerUi.Views = {};
|
|
||||||
|
|
||||||
// don't break backward compatibility with previous versions and warn users to upgrade their code
|
|
||||||
(function(){
|
|
||||||
window.authorizations = {
|
|
||||||
add: function() {
|
|
||||||
warn('Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add().');
|
|
||||||
|
|
||||||
if (typeof window.swaggerUi === 'undefined') {
|
|
||||||
throw new TypeError('window.swaggerUi is not defined');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.swaggerUi instanceof SwaggerUi) {
|
|
||||||
window.swaggerUi.api.clientAuthorizations.add.apply(window.swaggerUi.api.clientAuthorizations, arguments);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
window.ApiKeyAuthorization = function() {
|
|
||||||
warn('window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization.');
|
|
||||||
SwaggerClient.ApiKeyAuthorization.apply(window, arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
window.PasswordAuthorization = function() {
|
|
||||||
warn('window.PasswordAuthorization is deprecated. Please use SwaggerClient.PasswordAuthorization.');
|
|
||||||
SwaggerClient.PasswordAuthorization.apply(window, arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
function warn(message) {
|
|
||||||
if ('console' in window && typeof window.console.warn === 'function') {
|
|
||||||
console.warn(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
|
|
||||||
|
|
||||||
// UMD
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['b'], function (b) {
|
|
||||||
return (root.SwaggerUi = factory(b));
|
|
||||||
});
|
|
||||||
} else if (typeof exports === 'object') {
|
|
||||||
// Node. Does not work with strict CommonJS, but
|
|
||||||
// only CommonJS-like environments that support module.exports,
|
|
||||||
// like Node.
|
|
||||||
module.exports = factory(require('b'));
|
|
||||||
} else {
|
|
||||||
// Browser globals
|
|
||||||
root.SwaggerUi = factory(root.b);
|
|
||||||
}
|
|
||||||
}(this, function () {
|
|
||||||
return SwaggerUi;
|
|
||||||
}));
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
SwaggerUi.Views.ApiKeyButton = Backbone.View.extend({ // TODO: append this to global SwaggerUi
|
SwaggerUi.Views.ApiKeyButton = Backbone.View.extend({ // TODO: append this to global SwaggerUi
|
||||||
|
|
||||||
events:{
|
events:{
|
||||||
|
|||||||
25
dist/swagger-ui.min.js
vendored
25
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -21,6 +21,7 @@ window.SwaggerTranslator.learn({
|
|||||||
"Response Code":"Response Code",
|
"Response Code":"Response Code",
|
||||||
"Response Headers":"Response Headers",
|
"Response Headers":"Response Headers",
|
||||||
"Hide Response":"Hide Response",
|
"Hide Response":"Hide Response",
|
||||||
|
"Headers":"Headers",
|
||||||
"Try it out!":"Try it out!",
|
"Try it out!":"Try it out!",
|
||||||
"Show/Hide":"Show/Hide",
|
"Show/Hide":"Show/Hide",
|
||||||
"List Operations":"List Operations",
|
"List Operations":"List Operations",
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ window.SwaggerTranslator.learn({
|
|||||||
"Response Body":"Corpo da resposta",
|
"Response Body":"Corpo da resposta",
|
||||||
"Response Code":"Código da resposta",
|
"Response Code":"Código da resposta",
|
||||||
"Response Headers":"Cabeçalho da resposta",
|
"Response Headers":"Cabeçalho da resposta",
|
||||||
|
"Headers":"Cabeçalhos",
|
||||||
"Hide Response":"Esconder resposta",
|
"Hide Response":"Esconder resposta",
|
||||||
"Try it out!":"Tente agora!",
|
"Try it out!":"Tente agora!",
|
||||||
"Show/Hide":"Mostrar/Esconder",
|
"Show/Hide":"Mostrar/Esconder",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<label for="{{contentTypeId}}">Response Content Type</label>
|
<label data-sw-translate for="{{contentTypeId}}">Response Content Type</label>
|
||||||
<select name="contentType" id="{{contentTypeId}}">
|
<select name="contentType" id="{{contentTypeId}}">
|
||||||
{{#if produces}}
|
{{#if produces}}
|
||||||
{{#each produces}}
|
{{#each produces}}
|
||||||
|
|||||||
@@ -49,15 +49,15 @@
|
|||||||
<form accept-charset='UTF-8' class='sandbox'>
|
<form accept-charset='UTF-8' class='sandbox'>
|
||||||
<div style='margin:0;padding:0;display:inline'></div>
|
<div style='margin:0;padding:0;display:inline'></div>
|
||||||
{{#if parameters}}
|
{{#if parameters}}
|
||||||
<h4>Parameters</h4>
|
<h4 data-sw-translate>Parameters</h4>
|
||||||
<table class='fullwidth'>
|
<table class='fullwidth'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 100px; max-width: 100px">Parameter</th>
|
<th style="width: 100px; max-width: 100px" data-sw-translate>Parameter</th>
|
||||||
<th style="width: 310px; max-width: 310px">Value</th>
|
<th style="width: 310px; max-width: 310px" data-sw-translate>Value</th>
|
||||||
<th style="width: 200px; max-width: 200px">Description</th>
|
<th style="width: 200px; max-width: 200px" data-sw-translate>Description</th>
|
||||||
<th style="width: 100px; max-width: 100px">Parameter Type</th>
|
<th style="width: 100px; max-width: 100px" data-sw-translate>Parameter Type</th>
|
||||||
<th style="width: 220px; max-width: 230px">Data Type</th>
|
<th style="width: 220px; max-width: 230px" data-sw-translate>Data Type</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="operation-params">
|
<tbody class="operation-params">
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if responseMessages}}
|
{{#if responseMessages}}
|
||||||
<div style='margin:0;padding:0;display:inline'></div>
|
<div style='margin:0;padding:0;display:inline'></div>
|
||||||
<h4>Response Messages</h4>
|
<h4 data-sw-translate>Response Messages</h4>
|
||||||
<table class='fullwidth'>
|
<table class='fullwidth'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>HTTP Status Code</th>
|
<th data-sw-translate>HTTP Status Code</th>
|
||||||
<th>Reason</th>
|
<th data-sw-translate>Reason</th>
|
||||||
<th>Response Model</th>
|
<th data-sw-translate>Response Model</th>
|
||||||
<th>Headers</th>
|
<th data-sw-translate>Headers</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="operation-status">
|
<tbody class="operation-status">
|
||||||
@@ -85,8 +85,8 @@
|
|||||||
{{#if isReadOnly}}
|
{{#if isReadOnly}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class='sandbox_header'>
|
<div class='sandbox_header'>
|
||||||
<input class='submit' type='button' value='Try it out!' />
|
<input class='submit' type='button' value='Try it out!' data-sw-translate/>
|
||||||
<a href='#' class='response_hider' style='display:none'>Hide Response</a>
|
<a href='#' class='response_hider' style='display:none' data-sw-translate>Hide Response</a>
|
||||||
<span class='response_throbber' style='display:none'></span>
|
<span class='response_throbber' style='display:none'></span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<label for="{{responseContentTypeId}}">Response Content Type</label>
|
<label data-sw-translate for="{{responseContentTypeId}}">Response Content Type</label>
|
||||||
<select name="responseContentType" id="{{responseContentTypeId}}">
|
<select name="responseContentType" id="{{responseContentTypeId}}">
|
||||||
{{#if produces}}
|
{{#if produces}}
|
||||||
{{#each produces}}
|
{{#each produces}}
|
||||||
|
|||||||
Reference in New Issue
Block a user