Skip to content

Commit 45ec53e

Browse files
committed
fixed expand operation by click
1 parent eaf59c1 commit 45ec53e

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

dist/swagger-ui.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ templates['operation'] = template({"1":function(container,depth0,helpers,partial
307307
},"23":function(container,depth0,helpers,partials,data) {
308308
return " <h4 data-sw-translate>Request Headers</h4>\n <div class='block request_headers'></div>\n";
309309
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
310-
var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing;
310+
var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3=container.escapeExpression;
311311

312312
return " <ul class='operations' >\n <li class='"
313313
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.method : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
@@ -316,29 +316,29 @@ templates['operation'] = template({"1":function(container,depth0,helpers,partial
316316
+ "_"
317317
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
318318
+ "'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/"
319-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
319+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
320320
+ "/"
321-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
321+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
322322
+ "' class=\"toggleOperation\">"
323323
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.method : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
324324
+ "</a>\n </span>\n <span class='path'>\n <a href='#!/"
325-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
325+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
326326
+ "/"
327-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
327+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
328328
+ "' class=\"toggleOperation "
329329
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.deprecated : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
330330
+ "\">"
331331
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.path : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
332332
+ "</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/"
333-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
333+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
334334
+ "/"
335-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
335+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
336336
+ "' class=\"toggleOperation\">"
337337
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.summary : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
338338
+ "</a>\n </li>\n </ul>\n </div>\n <div class='content' id='"
339-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
340-
+ "/"
341-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
339+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
340+
+ "_"
341+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
342342
+ "_content' style='display:none'>\n"
343343
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.deprecated : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
344344
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.description : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")

dist/swagger-ui.min.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/template/operation.handlebars

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
<div class='heading'>
44
<h3>
55
<span class='http_method'>
6-
<a href='#!/{{{escape encodedParentId}}}/{{{escape nickname}}}' class="toggleOperation">{{{escape method}}}</a>
6+
<a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation">{{{escape method}}}</a>
77
</span>
88
<span class='path'>
9-
<a href='#!/{{{escape encodedParentId}}}/{{{escape nickname}}}' class="toggleOperation {{#if deprecated}}deprecated{{/if}}">{{{escape path}}}</a>
9+
<a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation {{#if deprecated}}deprecated{{/if}}">{{{escape path}}}</a>
1010
</span>
1111
</h3>
1212
<ul class='options'>
1313
<li>
14-
<a href='#!/{{{escape encodedParentId}}}/{{{escape nickname}}}' class="toggleOperation">{{{escape summary}}}</a>
14+
<a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation">{{{escape summary}}}</a>
1515
</li>
1616
</ul>
1717
</div>
18-
<div class='content' id='{{{escape encodedParentId}}}/{{{escape nickname}}}_content' style='display:none'>
18+
<div class='content' id='{{sanitize encodedParentId}}_{{sanitize nickname}}_content' style='display:none'>
1919
{{#if deprecated}}
2020
<h4><span data-sw-translate>Warning: Deprecated</span></h4>
2121
{{/if}}

src/main/template/templates.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ templates['operation'] = template({"1":function(container,depth0,helpers,partial
301301
},"23":function(container,depth0,helpers,partials,data) {
302302
return " <h4 data-sw-translate>Request Headers</h4>\n <div class='block request_headers'></div>\n";
303303
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
304-
var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing;
304+
var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3=container.escapeExpression;
305305

306306
return " <ul class='operations' >\n <li class='"
307307
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.method : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
@@ -310,29 +310,29 @@ templates['operation'] = template({"1":function(container,depth0,helpers,partial
310310
+ "_"
311311
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
312312
+ "'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/"
313-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
313+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
314314
+ "/"
315-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
315+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
316316
+ "' class=\"toggleOperation\">"
317317
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.method : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
318318
+ "</a>\n </span>\n <span class='path'>\n <a href='#!/"
319-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
319+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
320320
+ "/"
321-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
321+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
322322
+ "' class=\"toggleOperation "
323323
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.deprecated : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
324324
+ "\">"
325325
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.path : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
326326
+ "</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/"
327-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
327+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
328328
+ "/"
329-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
329+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
330330
+ "' class=\"toggleOperation\">"
331331
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.summary : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
332332
+ "</a>\n </li>\n </ul>\n </div>\n <div class='content' id='"
333-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
334-
+ "/"
335-
+ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "")
333+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.encodedParentId : depth0),{"name":"sanitize","hash":{},"data":data}))
334+
+ "_"
335+
+ alias3((helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.nickname : depth0),{"name":"sanitize","hash":{},"data":data}))
336336
+ "_content' style='display:none'>\n"
337337
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.deprecated : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
338338
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.description : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")

0 commit comments

Comments
 (0)