rebuilt distro for #331
This commit is contained in:
14
dist/lib/swagger.js
vendored
14
dist/lib/swagger.js
vendored
@@ -1,5 +1,5 @@
|
|||||||
// swagger.js
|
// swagger.js
|
||||||
// version 2.0.29
|
// version 2.0.30
|
||||||
|
|
||||||
var __bind = function(fn, me){
|
var __bind = function(fn, me){
|
||||||
return function(){
|
return function(){
|
||||||
@@ -1475,6 +1475,16 @@ ApiKeyAuthorization.prototype.apply = function(obj, authorizations) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var CookieAuthorization = function(cookie) {
|
||||||
|
this.cookie = cookie;
|
||||||
|
}
|
||||||
|
|
||||||
|
CookieAuthorization.prototype.apply = function(obj, authorizations) {
|
||||||
|
obj.cookieJar = obj.cookieJar || CookieJar();
|
||||||
|
obj.cookieJar.setCookie(this.cookie);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Password Authorization is a basic auth implementation
|
* Password Authorization is a basic auth implementation
|
||||||
*/
|
*/
|
||||||
@@ -1498,6 +1508,7 @@ PasswordAuthorization.prototype.apply = function(obj, authorizations) {
|
|||||||
var e = (typeof window !== 'undefined' ? window : exports);
|
var e = (typeof window !== 'undefined' ? window : exports);
|
||||||
|
|
||||||
var sampleModels = {};
|
var sampleModels = {};
|
||||||
|
var cookies = {};
|
||||||
|
|
||||||
e.SampleModels = sampleModels;
|
e.SampleModels = sampleModels;
|
||||||
e.SwaggerHttp = SwaggerHttp;
|
e.SwaggerHttp = SwaggerHttp;
|
||||||
@@ -1505,6 +1516,7 @@ e.SwaggerRequest = SwaggerRequest;
|
|||||||
e.authorizations = new SwaggerAuthorizations();
|
e.authorizations = new SwaggerAuthorizations();
|
||||||
e.ApiKeyAuthorization = ApiKeyAuthorization;
|
e.ApiKeyAuthorization = ApiKeyAuthorization;
|
||||||
e.PasswordAuthorization = PasswordAuthorization;
|
e.PasswordAuthorization = PasswordAuthorization;
|
||||||
|
e.CookieAuthorization = CookieAuthorization;
|
||||||
e.JQueryHttpClient = JQueryHttpClient;
|
e.JQueryHttpClient = JQueryHttpClient;
|
||||||
e.ShredHttpClient = ShredHttpClient;
|
e.ShredHttpClient = ShredHttpClient;
|
||||||
e.SwaggerOperation = SwaggerOperation;
|
e.SwaggerOperation = SwaggerOperation;
|
||||||
|
|||||||
21
dist/swagger-ui.js
vendored
21
dist/swagger-ui.js
vendored
@@ -1,5 +1,4 @@
|
|||||||
// swagger-ui.js
|
// swagger-ui.js
|
||||||
// version 2.0.15
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
// Helper function for vertically aligning DOM elements
|
// Helper function for vertically aligning DOM elements
|
||||||
@@ -384,7 +383,7 @@ function program14(depth0,data) {
|
|||||||
function program16(depth0,data) {
|
function program16(depth0,data) {
|
||||||
|
|
||||||
|
|
||||||
return "\n <div style='margin:0;padding:0;display:inline'></div>\n <h4>Error Status Codes</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n ";
|
return "\n <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 </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n ";
|
||||||
}
|
}
|
||||||
|
|
||||||
function program18(depth0,data) {
|
function program18(depth0,data) {
|
||||||
@@ -1202,7 +1201,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|||||||
if (stack1 = helpers.message) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
|
if (stack1 = helpers.message) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
|
||||||
else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
|
else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
|
||||||
if(stack1 || stack1 === 0) { buffer += stack1; }
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
||||||
buffer += "</td>\n";
|
buffer += "</td>\n<td width='50%'><span class=\"model-signature\" /></td>";
|
||||||
return buffer;
|
return buffer;
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
@@ -1996,9 +1995,23 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|||||||
StatusCodeView.prototype.initialize = function() {};
|
StatusCodeView.prototype.initialize = function() {};
|
||||||
|
|
||||||
StatusCodeView.prototype.render = function() {
|
StatusCodeView.prototype.render = function() {
|
||||||
var template;
|
var responseModel, responseModelView, template;
|
||||||
template = this.template();
|
template = this.template();
|
||||||
$(this.el).html(template(this.model));
|
$(this.el).html(template(this.model));
|
||||||
|
if (swaggerUi.api.models.hasOwnProperty(this.model.responseModel)) {
|
||||||
|
responseModel = {
|
||||||
|
sampleJSON: JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(), null, 2),
|
||||||
|
isParam: false,
|
||||||
|
signature: swaggerUi.api.models[this.model.responseModel].getMockSignature()
|
||||||
|
};
|
||||||
|
responseModelView = new SignatureView({
|
||||||
|
model: responseModel,
|
||||||
|
tagName: 'div'
|
||||||
|
});
|
||||||
|
$('.model-signature', this.$el).append(responseModelView.render().el);
|
||||||
|
} else {
|
||||||
|
$('.model-signature', this.$el).html('');
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
|||||||
// swagger.js
|
// swagger.js
|
||||||
// version 2.0.29
|
// version 2.0.30
|
||||||
|
|
||||||
var __bind = function(fn, me){
|
var __bind = function(fn, me){
|
||||||
return function(){
|
return function(){
|
||||||
@@ -1475,6 +1475,16 @@ ApiKeyAuthorization.prototype.apply = function(obj, authorizations) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var CookieAuthorization = function(cookie) {
|
||||||
|
this.cookie = cookie;
|
||||||
|
}
|
||||||
|
|
||||||
|
CookieAuthorization.prototype.apply = function(obj, authorizations) {
|
||||||
|
obj.cookieJar = obj.cookieJar || CookieJar();
|
||||||
|
obj.cookieJar.setCookie(this.cookie);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Password Authorization is a basic auth implementation
|
* Password Authorization is a basic auth implementation
|
||||||
*/
|
*/
|
||||||
@@ -1498,6 +1508,7 @@ PasswordAuthorization.prototype.apply = function(obj, authorizations) {
|
|||||||
var e = (typeof window !== 'undefined' ? window : exports);
|
var e = (typeof window !== 'undefined' ? window : exports);
|
||||||
|
|
||||||
var sampleModels = {};
|
var sampleModels = {};
|
||||||
|
var cookies = {};
|
||||||
|
|
||||||
e.SampleModels = sampleModels;
|
e.SampleModels = sampleModels;
|
||||||
e.SwaggerHttp = SwaggerHttp;
|
e.SwaggerHttp = SwaggerHttp;
|
||||||
@@ -1505,6 +1516,7 @@ e.SwaggerRequest = SwaggerRequest;
|
|||||||
e.authorizations = new SwaggerAuthorizations();
|
e.authorizations = new SwaggerAuthorizations();
|
||||||
e.ApiKeyAuthorization = ApiKeyAuthorization;
|
e.ApiKeyAuthorization = ApiKeyAuthorization;
|
||||||
e.PasswordAuthorization = PasswordAuthorization;
|
e.PasswordAuthorization = PasswordAuthorization;
|
||||||
|
e.CookieAuthorization = CookieAuthorization;
|
||||||
e.JQueryHttpClient = JQueryHttpClient;
|
e.JQueryHttpClient = JQueryHttpClient;
|
||||||
e.ShredHttpClient = ShredHttpClient;
|
e.ShredHttpClient = ShredHttpClient;
|
||||||
e.SwaggerOperation = SwaggerOperation;
|
e.SwaggerOperation = SwaggerOperation;
|
||||||
|
|||||||
Reference in New Issue
Block a user