rollback swagger-static template

This commit is contained in:
wing328 2015-06-09 12:58:41 +08:00
parent f2ee63da3b
commit d8060f47a8
11 changed files with 5674 additions and 8754 deletions

View File

@ -144,56 +144,45 @@ textarea {
background: transparent !important; background: transparent !important;
box-shadow: none !important; box-shadow: none !important;
} }
a, a,
a:visited { a:visited {
text-decoration: underline; text-decoration: underline;
} }
a[href]:after { a[href]:after {
content: " (" attr(href) ")"; content: " (" attr(href) ")";
} }
abbr[title]:after { abbr[title]:after {
content: " (" attr(title) ")"; content: " (" attr(title) ")";
} }
.ir a:after, .ir a:after,
a[href^="javascript:"]:after, a[href^="javascript:"]:after,
a[href^="#"]:after { a[href^="#"]:after {
content: ""; content: "";
} }
pre, pre,
blockquote { blockquote {
border: 1px solid #999; border: 1px solid #999;
page-break-inside: avoid; page-break-inside: avoid;
} }
thead { thead {
display: table-header-group; display: table-header-group;
} }
tr, tr,
img { img {
page-break-inside: avoid; page-break-inside: avoid;
} }
img { img {
max-width: 100% !important; max-width: 100% !important;
} }
@page { @page {
margin: 0.5cm; margin: 0.5cm;
} }
p, p,
h2, h2,
h3 { h3 {
orphans: 3; orphans: 3;
widows: 3; widows: 3;
} }
h2, h2,
h3 { h3 {
page-break-after: avoid; page-break-after: avoid;

View File

@ -169,7 +169,6 @@ li.parameter {
font-weight: bold; font-weight: bold;
font-size: 1.1em; font-size: 1.1em;
} }
.param-type { .param-type {
margin-left: 1em; margin-left: 1em;
font-style: italic; font-style: italic;

View File

@ -57,8 +57,7 @@
}) })
}(window.jQuery); }(window.jQuery);/* ==========================================================
/* ==========================================================
* bootstrap-alert.js v2.2.2 * bootstrap-alert.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#alerts * http://twitter.github.com/bootstrap/javascript.html#alerts
* ========================================================== * ==========================================================
@ -156,8 +155,7 @@
$(document).on('click.alert.data-api', dismiss, Alert.prototype.close) $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
}(window.jQuery); }(window.jQuery);/* ============================================================
/* ============================================================
* bootstrap-button.js v2.2.2 * bootstrap-button.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#buttons * http://twitter.github.com/bootstrap/javascript.html#buttons
* ============================================================ * ============================================================
@ -261,8 +259,7 @@
$btn.button('toggle') $btn.button('toggle')
}) })
}(window.jQuery); }(window.jQuery);/* ==========================================================
/* ==========================================================
* bootstrap-carousel.js v2.2.2 * bootstrap-carousel.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#carousel * http://twitter.github.com/bootstrap/javascript.html#carousel
* ========================================================== * ==========================================================
@ -382,9 +379,7 @@
$next.removeClass([type, direction].join(' ')).addClass('active') $next.removeClass([type, direction].join(' ')).addClass('active')
$active.removeClass(['active', direction].join(' ')) $active.removeClass(['active', direction].join(' '))
that.sliding = false that.sliding = false
setTimeout(function () { setTimeout(function () { that.$element.trigger('slid') }, 0)
that.$element.trigger('slid')
}, 0)
}) })
} else { } else {
this.$element.trigger(e) this.$element.trigger(e)
@ -448,8 +443,7 @@
e.preventDefault() e.preventDefault()
}) })
}(window.jQuery); }(window.jQuery);/* =============================================================
/* =============================================================
* bootstrap-collapse.js v2.2.2 * bootstrap-collapse.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#collapse * http://twitter.github.com/bootstrap/javascript.html#collapse
* ============================================================= * =============================================================
@ -615,8 +609,7 @@
$(target).collapse(option) $(target).collapse(option)
}) })
}(window.jQuery); }(window.jQuery);/* ============================================================
/* ============================================================
* bootstrap-dropdown.js v2.2.2 * bootstrap-dropdown.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#dropdowns * http://twitter.github.com/bootstrap/javascript.html#dropdowns
* ============================================================ * ============================================================
@ -771,17 +764,12 @@
$(document) $(document)
.on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
.on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
e.stopPropagation() .on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) { e.stopPropagation() })
})
.on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) {
e.stopPropagation()
})
.on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
}(window.jQuery); }(window.jQuery);/* =========================================================
/* =========================================================
* bootstrap-modal.js v2.2.2 * bootstrap-modal.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#modals * http://twitter.github.com/bootstrap/javascript.html#modals
* ========================================================= * =========================================================
@ -857,9 +845,7 @@
that.enforceFocus() that.enforceFocus()
transition ? transition ?
that.$element.one($.support.transition.end, function () { that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
that.$element.focus().trigger('shown')
}) :
that.$element.focus().trigger('shown') that.$element.focus().trigger('shown')
}) })
@ -1314,8 +1300,7 @@
return this return this
} }
}(window.jQuery); }(window.jQuery);/* ===========================================================
/* ===========================================================
* bootstrap-popover.js v2.2.2 * bootstrap-popover.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#popovers * http://twitter.github.com/bootstrap/javascript.html#popovers
* =========================================================== * ===========================================================
@ -1414,12 +1399,9 @@
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
placement: 'right' placement: 'right'
, , trigger: 'click'
trigger: 'click' , content: ''
, , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>'
content: ''
,
template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>'
}) })
@ -1431,8 +1413,7 @@
return this return this
} }
}(window.jQuery); }(window.jQuery);/* =============================================================
/* =============================================================
* bootstrap-scrollspy.js v2.2.2 * bootstrap-scrollspy.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#scrollspy * http://twitter.github.com/bootstrap/javascript.html#scrollspy
* ============================================================= * =============================================================
@ -1495,9 +1476,7 @@
&& $href.length && $href.length
&& [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null && [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null
}) })
.sort(function (a, b) { .sort(function (a, b) { return a[0] - b[0] })
return a[0] - b[0]
})
.each(function () { .each(function () {
self.offsets.push(this[0]) self.offsets.push(this[0])
self.targets.push(this[1]) self.targets.push(this[1])
@ -1595,8 +1574,7 @@
}) })
}) })
}(window.jQuery); }(window.jQuery);/* ========================================================
/* ========================================================
* bootstrap-tab.js v2.2.2 * bootstrap-tab.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#tabs * http://twitter.github.com/bootstrap/javascript.html#tabs
* ======================================================== * ========================================================
@ -1739,8 +1717,7 @@
$(this).tab('show') $(this).tab('show')
}) })
}(window.jQuery); }(window.jQuery);/* =============================================================
/* =============================================================
* bootstrap-typeahead.js v2.2.2 * bootstrap-typeahead.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#typeahead * http://twitter.github.com/bootstrap/javascript.html#typeahead
* ============================================================= * =============================================================
@ -2000,9 +1977,7 @@
, blur: function (e) { , blur: function (e) {
var that = this var that = this
setTimeout(function () { setTimeout(function () { that.hide() }, 150)
that.hide()
}, 150)
} }
, click: function (e) { , click: function (e) {
@ -2097,9 +2072,7 @@
this.options = $.extend({}, $.fn.affix.defaults, options) this.options = $.extend({}, $.fn.affix.defaults, options)
this.$window = $(window) this.$window = $(window)
.on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
.on('click.affix.data-api', $.proxy(function () { .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
setTimeout($.proxy(this.checkPosition, this), 1)
}, this))
this.$element = $(element) this.$element = $(element)
this.checkPosition() this.checkPosition()
} }

File diff suppressed because one or more lines are too long

View File

@ -55,7 +55,8 @@ function goToAnchor() {
window.scrollTo(0,$('a[name='+anchor+']').offset().top - 80); window.scrollTo(0,$('a[name='+anchor+']').offset().top - 80);
} }
} }
function resize() { function resize()
{
$(".sidebar").css('height', $(window).height() -60); $(".sidebar").css('height', $(window).height() -60);
$("#content-window").css('height', $(window).height() -60); $("#content-window").css('height', $(window).height() -60);

View File

@ -49,9 +49,7 @@
<div class="non-sidebar"> <div class="non-sidebar">
<div class="main-content"> <div class="main-content">
<h2>Getting Started</h2> <h2>Getting Started</h2>
<p>To begin using your fancy HTTP API, follow the steps below.</p> <p>To begin using your fancy HTTP API, follow the steps below.</p>
<p>You can add some helpful tips, here</p> <p>You can add some helpful tips, here</p>
</div> </div>
</div> </div>

View File

@ -1,6 +1,5 @@
<div class="main-content"> <div class="main-content">
<h2><a name="{{className}}"></a>{{className}}</h2> <h2><a name="{{className}}"></a>{{className}}</h2>
<p>This is the {{className}} API</p> <p>This is the {{className}} API</p>
{{#operations}} {{#operations}}
@ -11,12 +10,9 @@
{{#notes}}<p>{{notes}}</p>{{/notes}} {{#notes}}<p>{{notes}}</p>{{/notes}}
<h3 class="section">URL</h3> <h3 class="section">URL</h3>
<code>{{basePath}}{{path}}</code> <code>{{basePath}}{{path}}</code>
<h3 class="section">HTTP Method</h3> <h3 class="section">HTTP Method</h3>
<code>{{httpMethod}}</code> <code>{{httpMethod}}</code>
<h3 class="section">Response Type</h3> <h3 class="section">Response Type</h3>
<div class="model" data-model="{{returnBaseType}}"><a href="">{{returnType}}</a></div> <div class="model" data-model="{{returnBaseType}}"><a href="">{{returnType}}</a></div>
<h3 class="section">Parameters</h3> <h3 class="section">Parameters</h3>
<ul> <ul>

View File

@ -1,4 +1,4 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>