|
56 | 56 | <ul id="node-config-parameter-list" style="padding: 0; margin:0;"></ul> |
57 | 57 | </div> |
58 | 58 | <div class="form-row"> |
59 | | - <a href="#" class="btn btn-mini" id="node-config-input-add-parameter"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.parameter"></span></a> |
| 59 | + <a href="#" class="red-ui-button red-ui-button-small" id="node-config-input-add-parameter"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.parameter"></span></a> |
60 | 60 | <a href="#" id="node-config-input-parameter-info" class="popover-closable" style="font-size: 10px; text-decoration: underline; float: right"><span data-i18n="swagger.label.parameters-help"></span></a> |
61 | 61 | </div> |
62 | 62 | </div> |
|
65 | 65 | <ul id="node-config-response-list" style="padding: 0; margin:0;"></ul> |
66 | 66 | </div> |
67 | 67 | <div class="form-row"> |
68 | | - <a href="#" class="btn btn-mini" id="node-config-input-add-response"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.response"></span></a> |
| 68 | + <a href="#" class="red-ui-button red-ui-button-small" id="node-config-input-add-response"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.response"></span></a> |
69 | 69 | <a href="#" id="node-config-input-response-info" class="popover-closable" style="font-size: 10px; text-decoration: underline; float: right"><span data-i18n="swagger.label.responses-help"></span></a> |
70 | 70 | </div> |
71 | 71 | </div> |
|
135 | 135 | id: "swagger-ui", |
136 | 136 | label: this._("swagger.sidebar.label"), |
137 | 137 | name: this._("swagger.sidebar.name"), |
138 | | - content: content |
| 138 | + content: content, |
| 139 | + iconClass: "fa fa-file-text-o" |
139 | 140 | }); |
140 | 141 |
|
141 | 142 | swaggerFrame.load(function(){ |
|
152 | 153 | RED.popover.tooltip($('#node-config-input-consumes-label'), this._("swagger.data-content.consumes")); |
153 | 154 | RED.popover.tooltip($('#node-config-input-produces-label'), this._("swagger.data-content.produces")); |
154 | 155 | RED.popover.tooltip($('#node-config-input-deprecated-label'), this._("swagger.data-content.deprecated")); |
155 | | - |
| 156 | + |
156 | 157 | RED.popover.tooltip($('#node-config-input-parameter-info'), this._("swagger.content.parameter-info")); |
157 | 158 | RED.popover.tooltip($('#node-config-input-response-info'), this._("swagger.content.response-info")) |
158 | | - |
| 159 | + |
159 | 160 | var node = this; |
160 | 161 |
|
161 | 162 | if ($("#node-input-method").length) { |
|
328 | 329 | }).val(opts.name).appendTo(row); |
329 | 330 | var remove = $('<a/>', { |
330 | 331 | href: "#", |
331 | | - class: "btn btn-mini", |
| 332 | + class: "red-ui-button red-ui-button-small", |
332 | 333 | style: "float: right; margin-right: 5px; margin-top: 3px;" |
333 | 334 | }).appendTo(row); |
334 | 335 | var removeIcon = $('<i/>', { |
|
367 | 368 | }).appendTo(li); |
368 | 369 | var remove = $('<a/>', { |
369 | 370 | href: "#", |
370 | | - class: "btn btn-mini", |
| 371 | + class: "red-ui-button red-ui-button-small", |
371 | 372 | style: "float: right; margin-right: 5px; margin-top: 3px;" |
372 | 373 | }).appendTo(row1); |
373 | 374 | var removeIcon = $('<i/>', { |
|
486 | 487 | }).appendTo(nameRows); |
487 | 488 | var descLabel = $("<label/>").text(descriptionText).appendTo(row2); |
488 | 489 | RED.popover.tooltip(descLabel, parameterDescriptionContent); |
489 | | - |
| 490 | + |
490 | 491 | $('<input/>', { |
491 | 492 | type: "text", |
492 | 493 | class: "node-swagger-description", |
|
522 | 523 | class: "node-swagger-propHeader-label", |
523 | 524 | style: "width: auto; font-weight: bold; margin-right: 10px" |
524 | 525 | }).text(propertiesText).appendTo(rowPropHeader); |
525 | | - var addPropButton = $('<a href=#" class="btn btn-mini" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader); |
| 526 | + var addPropButton = $('<a href=#" class="red-ui-button red-ui-button-small" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader); |
526 | 527 |
|
527 | 528 | var rowPropList = $("<div/>", { |
528 | 529 | class: "form-row node-swagger-prop-list", |
|
598 | 599 | }).appendTo(li); |
599 | 600 | var remove = $('<a/>', { |
600 | 601 | href: "#", |
601 | | - class: "btn btn-mini", |
| 602 | + class: "red-ui-button red-ui-button-small", |
602 | 603 | style: "float: right; margin-right: 5px; margin-top: 3px;" |
603 | 604 | }).appendTo(row1); |
604 | 605 | var removeIcon = $('<i/>', { |
|
687 | 688 | }).appendTo(nameRows); |
688 | 689 | var descLabel = $("<label/>").text(descriptionText).appendTo(row2); |
689 | 690 | RED.popover.tooltip(descLabel, responseDescriptionContent); |
690 | | - |
| 691 | + |
691 | 692 | $('<input/>', { |
692 | 693 | type: "text", |
693 | 694 | class: "node-swagger-description" |
|
700 | 701 | class: "node-swagger-propHeader-label", |
701 | 702 | style: "width: auto; font-weight: bold; margin-right: 10px" |
702 | 703 | }).text(propertiesText).appendTo(rowPropHeader); |
703 | | - var addPropButton = $('<a href=#" class="btn btn-mini" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader); |
| 704 | + var addPropButton = $('<a href=#" class="red-ui-button red-ui-button-small" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader); |
704 | 705 |
|
705 | 706 | var rowPropList = $("<div/>", { |
706 | 707 | class: "form-row node-swagger-prop-list", |
|
0 commit comments