Bump up swagger ui from 2.1.4 to 2.1.5
This commit bumps up swagger ui to 2.1.5 which fixes various bugs
of swagger ui 2.1.4.
Change-Id: I4f8d7f79b88cddada0148a8629e7ef4da9eac3a0
diff --git a/web/api/src/main/resources/docs/css/print.css b/web/api/src/main/resources/docs/css/print.css
index 2e6b310..d4c1e70 100644
--- a/web/api/src/main/resources/docs/css/print.css
+++ b/web/api/src/main/resources/docs/css/print.css
@@ -82,7 +82,7 @@
.swagger-section pre .vhdl .attribute,
.swagger-section pre .clojure .attribute,
.swagger-section pre .coffeescript .property {
- color: #8888ff;
+ color: #88F;
}
.swagger-section pre .keyword,
.swagger-section pre .id,
@@ -120,9 +120,71 @@
.swagger-section pre .xml .cdata {
opacity: 0.5;
}
+.swagger-section .hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #F0F0F0;
+}
+.swagger-section .hljs,
+.swagger-section .hljs-subst {
+ color: #444;
+}
+.swagger-section .hljs-keyword,
+.swagger-section .hljs-attribute,
+.swagger-section .hljs-selector-tag,
+.swagger-section .hljs-meta-keyword,
+.swagger-section .hljs-doctag,
+.swagger-section .hljs-name {
+ font-weight: bold;
+}
+.swagger-section .hljs-built_in,
+.swagger-section .hljs-literal,
+.swagger-section .hljs-bullet,
+.swagger-section .hljs-code,
+.swagger-section .hljs-addition {
+ color: #1F811F;
+}
+.swagger-section .hljs-regexp,
+.swagger-section .hljs-symbol,
+.swagger-section .hljs-variable,
+.swagger-section .hljs-template-variable,
+.swagger-section .hljs-link,
+.swagger-section .hljs-selector-attr,
+.swagger-section .hljs-selector-pseudo {
+ color: #BC6060;
+}
+.swagger-section .hljs-type,
+.swagger-section .hljs-string,
+.swagger-section .hljs-number,
+.swagger-section .hljs-selector-id,
+.swagger-section .hljs-selector-class,
+.swagger-section .hljs-quote,
+.swagger-section .hljs-template-tag,
+.swagger-section .hljs-deletion {
+ color: #880000;
+}
+.swagger-section .hljs-title,
+.swagger-section .hljs-section {
+ color: #880000;
+ font-weight: bold;
+}
+.swagger-section .hljs-comment {
+ color: #888888;
+}
+.swagger-section .hljs-meta {
+ color: #2B6EA1;
+}
+.swagger-section .hljs-emphasis {
+ font-style: italic;
+}
+.swagger-section .hljs-strong {
+ font-weight: bold;
+}
.swagger-section .swagger-ui-wrap {
line-height: 1;
font-family: "Droid Sans", sans-serif;
+ min-width: 760px;
max-width: 960px;
margin-left: auto;
margin-right: auto;
@@ -365,6 +427,7 @@
}
.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
display: block;
+ min-width: 230px;
margin: 0;
padding: 0;
}
@@ -604,6 +667,7 @@
}
.swagger-section .swagger-ui-wrap .markdown pre code {
line-height: 1.6em;
+ overflow: auto;
}
.swagger-section .swagger-ui-wrap div.gist {
margin: 20px 0 25px 0 !important;
@@ -724,6 +788,9 @@
color: black;
text-decoration: none;
}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.toggleOperation.deprecated {
+ text-decoration: line-through;
+}
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
text-decoration: underline;
}
@@ -1115,18 +1182,122 @@
}
.swagger-section .oauth_submit {
text-align: center;
+ display: inline-block;
+}
+.swagger-section .authorize-wrapper {
+ margin: 15px 0 10px;
+}
+.swagger-section .authorize-wrapper_operation {
+ float: right;
+}
+.swagger-section .authorize__btn:hover {
+ text-decoration: underline;
+ cursor: pointer;
+}
+.swagger-section .authorize__btn_operation:hover .authorize-scopes {
+ display: block;
+}
+.swagger-section .authorize-scopes {
+ position: absolute;
+ margin-top: 20px;
+ background: #FFF;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ display: none;
+ font-size: 13px;
+ max-width: 300px;
+ line-height: 30px;
+ color: black;
+ padding: 5px;
+}
+.swagger-section .authorize-scopes .authorize__scope {
+ text-decoration: none;
+}
+.swagger-section .authorize__btn_operation {
+ height: 18px;
+ vertical-align: middle;
+ display: inline-block;
+ background: url(../images/explorer_icons.png) no-repeat;
+}
+.swagger-section .authorize__btn_operation_login {
+ background-position: 0 0;
+ width: 18px;
+ margin-top: -6px;
+ margin-left: 4px;
+}
+.swagger-section .authorize__btn_operation_logout {
+ background-position: -30px 0;
+ width: 18px;
+ margin-top: -6px;
+ margin-left: 4px;
+}
+.swagger-section #auth_container {
+ color: #fff;
+ display: inline-block;
+ border: none;
+ padding: 5px;
+ width: 87px;
+ height: 13px;
+}
+.swagger-section #auth_container .authorize__btn {
+ color: #fff;
+}
+.swagger-section .auth_container {
+ padding: 0 0 10px;
+ margin-bottom: 5px;
+ border-bottom: solid 1px #CCC;
+ font-size: 0.9em;
+}
+.swagger-section .auth_container .auth__title {
+ color: #547f00;
+ font-size: 1.2em;
+}
+.swagger-section .auth_container .basic_auth__label {
+ display: inline-block;
+ width: 60px;
+}
+.swagger-section .auth_container .auth__description {
+ color: #999999;
+ margin-bottom: 5px;
+}
+.swagger-section .auth_container .auth__button {
+ margin-top: 10px;
+ height: 30px;
+}
+.swagger-section .auth_container .key_auth__field {
+ margin: 5px 0;
+}
+.swagger-section .auth_container .key_auth__label {
+ display: inline-block;
+ width: 60px;
}
.swagger-section .api-popup-dialog {
- z-index: 10000;
position: absolute;
+ display: none;
+}
+.swagger-section .api-popup-dialog-wrapper {
+ z-index: 1000;
width: 500px;
background: #FFF;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
- display: none;
font-size: 13px;
color: #777;
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+.swagger-section .api-popup-dialog-shadow {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0.2;
+ background-color: gray;
+ z-index: 900;
}
.swagger-section .api-popup-dialog .api-popup-title {
font-size: 24px;
@@ -1140,6 +1311,10 @@
padding-left: 5px;
padding-bottom: 5px;
}
+.swagger-section .api-popup-dialog .api-popup-content {
+ max-height: 500px;
+ overflow-y: auto;
+}
.swagger-section .api-popup-dialog .api-popup-authbtn {
height: 30px;
}