manually added #1086, #1089

This commit is contained in:
Tony Tam
2015-05-08 12:01:06 -07:00
parent 9666eaeb96
commit ccfc4aa4ba
9 changed files with 22 additions and 8 deletions

3
dist/css/print.css vendored
View File

@@ -274,6 +274,9 @@
font-weight: bold; font-weight: bold;
font-size: 25px; font-size: 25px;
} }
.swagger-section .swagger-ui-wrap .footer {
margin-top: 20px;
}
.swagger-section .swagger-ui-wrap p.big, .swagger-section .swagger-ui-wrap p.big,
.swagger-section .swagger-ui-wrap div.big p { .swagger-section .swagger-ui-wrap div.big p {
font-size: 1em; font-size: 1em;

3
dist/css/screen.css vendored
View File

@@ -274,6 +274,9 @@
font-weight: bold; font-weight: bold;
font-size: 25px; font-size: 25px;
} }
.swagger-section .swagger-ui-wrap .footer {
margin-top: 20px;
}
.swagger-section .swagger-ui-wrap p.big, .swagger-section .swagger-ui-wrap p.big,
.swagger-section .swagger-ui-wrap div.big p { .swagger-section .swagger-ui-wrap div.big p {
font-size: 1em; font-size: 1em;

4
dist/swagger-ui.js vendored
View File

@@ -326,7 +326,7 @@ this["Handlebars"]["templates"]["main"] = Handlebars.template({"1":function(dept
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<div class='info' id='api_info'>\n"; var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<div class='info' id='api_info'>\n";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.info : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data}); stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.info : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; } if (stack1 != null) { buffer += stack1; }
buffer += "</div>\n<div class='container' id='resources_container'>\n <ul id='resources'></ul>\n\n <div class=\"footer\">\n <br>\n <br>\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">base url</span>: " buffer += "</div>\n<div class='container' id='resources_container'>\n <ul id='resources'></ul>\n\n <div class=\"footer\">\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">base url</span>: "
+ escapeExpression(((helper = (helper = helpers.basePath || (depth0 != null ? depth0.basePath : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"basePath","hash":{},"data":data}) : helper))) + escapeExpression(((helper = (helper = helpers.basePath || (depth0 != null ? depth0.basePath : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"basePath","hash":{},"data":data}) : helper)))
+ "\n"; + "\n";
stack1 = helpers['if'].call(depth0, ((stack1 = (depth0 != null ? depth0.info : depth0)) != null ? stack1.version : stack1), {"name":"if","hash":{},"fn":this.program(14, data),"inverse":this.noop,"data":data}); stack1 = helpers['if'].call(depth0, ((stack1 = (depth0 != null ? depth0.info : depth0)) != null ? stack1.version : stack1), {"name":"if","hash":{},"fn":this.program(14, data),"inverse":this.noop,"data":data});
@@ -20929,7 +20929,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
auths: auths, auths: auths,
swaggerOptions: this.options.swaggerOptions swaggerOptions: this.options.swaggerOptions
}); });
$('#resources').append(resourceView.render().el); $('#resources', this.el).append(resourceView.render().el);
}, },
clear: function(){ clear: function(){

File diff suppressed because one or more lines are too long

View File

@@ -274,6 +274,9 @@
font-weight: bold; font-weight: bold;
font-size: 25px; font-size: 25px;
} }
.swagger-section .swagger-ui-wrap .footer {
margin-top: 20px;
}
.swagger-section .swagger-ui-wrap p.big, .swagger-section .swagger-ui-wrap p.big,
.swagger-section .swagger-ui-wrap div.big p { .swagger-section .swagger-ui-wrap div.big p {
font-size: 1em; font-size: 1em;

View File

@@ -274,6 +274,9 @@
font-weight: bold; font-weight: bold;
font-size: 25px; font-size: 25px;
} }
.swagger-section .swagger-ui-wrap .footer {
margin-top: 20px;
}
.swagger-section .swagger-ui-wrap p.big, .swagger-section .swagger-ui-wrap p.big,
.swagger-section .swagger-ui-wrap div.big p { .swagger-section .swagger-ui-wrap div.big p {
font-size: 1em; font-size: 1em;

View File

@@ -130,7 +130,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
auths: auths, auths: auths,
swaggerOptions: this.options.swaggerOptions swaggerOptions: this.options.swaggerOptions
}); });
$('#resources').append(resourceView.render().el); $('#resources', this.el).append(resourceView.render().el);
}, },
clear: function(){ clear: function(){

View File

@@ -153,6 +153,10 @@
font-size: 25px; font-size: 25px;
} }
.footer {
margin-top: 20px;
}
p.big, div.big p { p.big, div.big p {
font-size: 1em; font-size: 1em;
margin-bottom: 10px; margin-bottom: 10px;

View File

@@ -18,8 +18,6 @@
<ul id='resources'></ul> <ul id='resources'></ul>
<div class="footer"> <div class="footer">
<br>
<br>
<h4 style="color: #999">[ <span style="font-variant: small-caps">base url</span>: {{basePath}} <h4 style="color: #999">[ <span style="font-variant: small-caps">base url</span>: {{basePath}}
{{#if info.version}} {{#if info.version}}
, <span style="font-variant: small-caps">api version</span>: {{info.version}} , <span style="font-variant: small-caps">api version</span>: {{info.version}}