소스 검색

closes #34

bubble
Ayush Gupta 12 년 전
부모
커밋
f42a3bf687
4개의 변경된 파일81개의 추가작업 그리고 11개의 파일을 삭제
  1. +70
    -8
      dist/swagger-ui.js
  2. +1
    -1
      dist/swagger-ui.min.js
  3. +5
    -1
      src/main/template/param.handlebars
  4. +5
    -1
      src/main/template/param_required.handlebars

+ 70
- 8
dist/swagger-ui.js 파일 보기

@@ -316,20 +316,51 @@ function program3(depth0,data) {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['param'] = template(function (Handlebars,depth0,helpers,partials,data) {
helpers = helpers || Handlebars.helpers;
var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;

function program1(depth0,data) {
var buffer = "", stack1;
buffer += "\n <input minlength='0' name='";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value='";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
buffer += escapeExpression(stack1) + "'/>\n ";
return buffer;}

buffer += "<td class='code'>";
function program3(depth0,data) {
var buffer = "", stack1;
buffer += "\n <input minlength='0' name='";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "</td>\n<td>\n <input minlength='0' name='";
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value=''/>\n ";
return buffer;}

buffer += "<td class='code'>";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "' placeholder='' type='text' value=''/>\n</td>\n<td width='500'>";
buffer += escapeExpression(stack1) + "</td>\n<td>\n ";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
stack2 = helpers['if'];
tmp1 = self.program(1, program1, data);
tmp1.hash = {};
tmp1.fn = tmp1;
tmp1.inverse = self.program(3, program3, data);
stack1 = stack2.call(depth0, stack1, tmp1);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n</td>\n<td width='500'>";
foundHelper = helpers.description;
stack1 = foundHelper || depth0.description;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -507,20 +538,51 @@ templates['param_readonly_required'] = template(function (Handlebars,depth0,help
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['param_required'] = template(function (Handlebars,depth0,helpers,partials,data) {
helpers = helpers || Handlebars.helpers;
var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;

function program1(depth0,data) {
var buffer = "", stack1;
buffer += "\n <input class='required' minlength='1' name='";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value='";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
buffer += escapeExpression(stack1) + "'/>\n ";
return buffer;}

buffer += "<td class='code required'>";
function program3(depth0,data) {
var buffer = "", stack1;
buffer += "\n <input class='required' minlength='1' name='";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "</td>\n<td>\n <input class='required' minlength='1' name='";
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value=''/>\n ";
return buffer;}

buffer += "<td class='code required'>";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "' placeholder='(required)' type='text' value=''/>\n</td>\n<td width='500'>\n <strong>";
buffer += escapeExpression(stack1) + "</td>\n<td>\n ";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
stack2 = helpers['if'];
tmp1 = self.program(1, program1, data);
tmp1.hash = {};
tmp1.fn = tmp1;
tmp1.inverse = self.program(3, program3, data);
stack1 = stack2.call(depth0, stack1, tmp1);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n</td>\n<td width='500'>\n <strong>";
foundHelper = helpers.description;
stack1 = foundHelper || depth0.description;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }


+ 1
- 1
dist/swagger-ui.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 5
- 1
src/main/template/param.handlebars 파일 보기

@@ -1,6 +1,10 @@
<td class='code'>{{name}}</td>
<td>
<input minlength='0' name='{{name}}' placeholder='' type='text' value=''/>
{{#if defaultValue}}
<input minlength='0' name='{{name}}' placeholder='' type='text' value='{{defaultValue}}'/>
{{else}}
<input minlength='0' name='{{name}}' placeholder='' type='text' value=''/>
{{/if}}
</td>
<td width='500'>{{description}}</td>


+ 5
- 1
src/main/template/param_required.handlebars 파일 보기

@@ -1,6 +1,10 @@
<td class='code required'>{{name}}</td>
<td>
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value=''/>
{{#if defaultValue}}
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value='{{defaultValue}}'/>
{{else}}
<input class='required' minlength='1' name='{{name}}' placeholder='(required)' type='text' value=''/>
{{/if}}
</td>
<td width='500'>
<strong>{{description}}</strong>


불러오는 중...
취소
저장