diff --git a/html/admin/css/swagger/screen.scss b/html/admin/css/swagger/screen.scss new file mode 100644 index 0000000000..cf3cd06b26 --- /dev/null +++ b/html/admin/css/swagger/screen.scss @@ -0,0 +1,1610 @@ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +body { + line-height: 1; +} + +ol, ul { + list-style: none; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +caption, th, td { + text-align: left; + font-weight: normal; + vertical-align: middle; +} + +q, blockquote { + quotes: none; +} + +q { + &:before, &:after { + content: ""; + content: none; + } +} + +blockquote { + &:before, &:after { + content: ""; + content: none; + } +} + +a img { + border: none; +} + +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { + display: block; +} + +h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { + text-decoration: none; +} + +h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { + text-decoration: underline; +} + +h1 span.divider, h2 span.divider, h3 span.divider, h4 span.divider, h5 span.divider, h6 span.divider { + color: #aaaaaa; +} + +h1 { + color: #547f00; + color: black; + font-size: 1.5em; + line-height: 1.3em; + padding: 10px 0 10px 0; + font-family: "Droid Sans", sans-serif; + font-weight: bold; +} + +h2 { + color: #89bf04; + color: black; + font-size: 1.3em; + padding: 10px 0 10px 0; + a { + color: black; + } + span.sub { + font-size: 0.7em; + color: #999999; + font-style: italic; + a { + color: #777777; + } + } +} + +h3 { + color: black; + font-size: 1.1em; + padding: 10px 0 10px 0; +} + +div.heading_with_menu { + float: none; + clear: both; + overflow: hidden; + display: block; + h1, h2, h3, h4, h5, h6 { + display: block; + clear: none; + float: left; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + width: 60%; + } + ul { + display: block; + clear: none; + float: right; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + margin-top: 10px; + } +} + +.body-textarea { + width: 300px; + height: 100px; +} + +ol { + margin: 0px 0 10px 0; + padding: 0 0 0 18px; + list-style-type: decimal; + li { + padding: 5px 0px; + font-size: 0.9em; + color: #333333; + } +} + +.markdown { + h3 { + color: #547f00; + } + h4 { + color: #666666; + } + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + padding: 10px; + margin: 0 0 10px 0; + code { + line-height: 1.6em; + } + } + p code, li code { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + background-color: #f0f0f0; + color: black; + padding: 1px 3px; + } + ol, ul { + font-family: "Droid Sans", sans-serif; + margin: 5px 0 10px 0; + padding: 0 0 0 18px; + list-style-type: disc; + } + ol li, ul li { + padding: 3px 0px; + line-height: 1.4em; + color: #333333; + } +} + +div.gist { + margin: 20px 0 25px 0 !important; +} + +p.big, div.big p { + font-size: 1em; + margin-bottom: 10px; +} + +span { + &.weak { + color: #666666; + } + &.blank, &.empty { + color: #888888; + font-style: italic; + } +} + +a { + color: #547f00; + &.hider { + color: #6fa5d2; + text-decoration: underline; + font-size: 0.9em; + } +} + +strong { + font-family: "Droid Sans", sans-serif; + font-weight: bold; +} + +.code { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; +} + +pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + padding: 10px; + /* white-space: pre-line */ + code { + line-height: 1.6em; + } +} + +.required { + font-weight: bold; +} + +table { + &.fullwidth { + width: 100%; + } + thead tr th { + padding: 5px; + font-size: 0.9em; + color: #666666; + border-bottom: 1px solid #999999; + } + tbody tr { + &.offset { + background-color: #f5f5f5; + } + td { + padding: 6px; + font-size: 0.9em; + border-bottom: 1px solid #cccccc; + vertical-align: top; + line-height: 1.3em; + } + &:last-child td { + border-bottom: none; + } + &.offset { + background-color: #f0f0f0; + } + } +} + +form { + &.form_box { + background-color: #ebf3f9; + border: 1px solid black; + border-color: #c3d9ec; + padding: 10px; + label { + color: #0f6ab4 !important; + } + input[type=submit] { + display: block; + padding: 10px; + } + p { + font-size: 0.9em; + padding: 0 0 15px 0; + color: #7e7b6d; + a { + color: #646257; + } + strong { + color: black; + } + &.weak { + font-size: 0.8em; + } + } + } + &.formtastic fieldset { + &.inputs ol li { + p.inline-hints { + margin-left: 0; + font-style: italic; + font-size: 0.9em; + margin: 0; + } + label { + display: block; + clear: both; + width: auto; + padding: 0 0 3px 0; + color: #666666; + abbr { + padding-left: 3px; + color: #888888; + } + } + &.required label { + color: black; + } + &.string input, &.url input, &.numeric input { + display: block; + padding: 4px; + width: auto; + clear: both; + } + &.string input.title, &.url input.title, &.numeric input.title { + font-size: 1.3em; + } + &.text textarea { + font-family: "Droid Sans", sans-serif; + height: 250px; + padding: 4px; + display: block; + clear: both; + } + &.select select { + display: block; + clear: both; + } + &.boolean { + float: none; + clear: both; + overflow: hidden; + display: block; + input { + display: block; + float: left; + clear: none; + margin: 0 5px 0 0; + } + label { + display: block; + float: left; + clear: none; + margin: 0; + padding: 0; + } + } + } + &.buttons { + margin: 0; + padding: 0; + } + } + &.fullwidth ol li { + &.string input, &.url input, &.text textarea, &.numeric input { + width: 500px !important; + } + } +} + +body { + /* font-family: "Droid Sans", sans-serif; */ + #content_message { + margin: 10px 15px; + font-style: italic; + color: #999999; + } + #header { + background-color: #89bf04; + padding: 14px; + a#logo { + font-size: 1.5em; + font-weight: bold; + text-decoration: none; + background: transparent url(../../img/swagger/logo_small.png) no-repeat left center; + padding: 20px 0 20px 40px; + color: white; + } + form#api_selector { + display: block; + clear: none; + float: right; + .input { + display: block; + clear: none; + float: left; + margin: 0 10px 0 0; + input { + font-size: 0.9em; + padding: 3px; + margin: 0; + input_baseUrl { + width: 400px; + } + input_apiKey { + width: 200px; + } + } + a#explore { + display: block; + text-decoration: none; + font-weight: bold; + padding: 6px 8px; + font-size: 0.9em; + color: white; + background-color: #547f00; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -o-border-radius: 4px; + -ms-border-radius: 4px; + -khtml-border-radius: 4px; + border-radius: 4px; + &:hover { + background-color: #547f00; + } + } + } + } + } + p#colophon { + margin: 0 15px 40px 15px; + padding: 10px 0; + font-size: 0.8em; + border-top: 1px solid #dddddd; + font-family: "Droid Sans", sans-serif; + color: #999999; + font-style: italic; + a { + text-decoration: none; + color: #547f00; + } + } + ul#resources { + font-family: "Droid Sans", sans-serif; + font-size: 0.9em; + li.resource { + border-bottom: 1px solid #dddddd; + line-height: 14px; + &:last-child { + border-bottom: none; + } + div.heading { + border: 1px solid transparent; + float: none; + clear: both; + overflow: hidden; + display: block; + h2 { + color: #999999; + padding-left: 0px; + display: block; + clear: none; + float: left; + font-family: "Droid Sans", sans-serif; + font-weight: bold; + font-size: 17px; + margin: 0px; + line-height: 17px; + a { + color: #999999; + &:hover { + color: black; + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 14px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + font-size: 13px; + height: 13px; + line-height: 12px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + color: #666666; + font-size: 0.9em; + a { + color: #aaaaaa; + text-decoration: none; + &:hover { + text-decoration: underline; + color: black; + } + } + } + } + } + &:hover div.heading h2 a, &.active div.heading h2 a { + color: black; + } + &:hover div.heading ul.options li a, &.active div.heading ul.options li a { + color: #555555; + } + ul.endpoints li.endpoint ul.operations { + div.content em { + color: black; + font-weight: bold; + } + li.operation { + &.get { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #e7f0f7; + border: 1px solid black; + border-color: #c3d9ec; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + color: black; + font-size: 16px; + font-weight: normal; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #0f6ab4; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #c3d9ec; + color: #0f6ab4; + font-size: 0.9em; + a { + color: #0f6ab4; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #ebf3f9; + border: 1px solid black; + border-color: #c3d9ec; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #0f6ab4; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #cc0000; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #6fa5d2; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + &.post { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #e7f6ec; + border: 1px solid black; + border-color: #c3e8d1; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + font-size: 16px; + font-weight: normal; + color: black; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #10a54a; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #c3e8d1; + color: #10a54a; + font-size: 0.9em; + a { + color: #10a54a; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #ebf7f0; + border: 1px solid black; + border-color: #c3e8d1; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #10a54a; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #cc0000; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #6fc992; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + &.put { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #f9f2e9; + border: 1px solid black; + border-color: #f0e0ca; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + font-size: 16px; + font-weight: normal; + color: black; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #c5862b; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #f0e0ca; + color: #c5862b; + font-size: 0.9em; + a { + color: #c5862b; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #faf5ee; + border: 1px solid black; + border-color: #f0e0ca; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #c5862b; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #cc0000; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #dcb67f; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + &.head { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #fcffcd; + border: 1px solid black; + border-color: #ffd20f; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + font-size: 16px; + font-weight: normal; + color: black; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #ffd20f; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #ffd20f; + color: #ffd20f; + font-size: 0.9em; + a { + color: #ffd20f; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #fcffcd; + border: 1px solid black; + border-color: #ffd20f; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #ffd20f; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #cc0000; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #6fc992; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + &.patch { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #FCE9E3; + border: 1px solid black; + border-color: #F5D5C3; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + font-size: 16px; + font-weight: normal; + color: black; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #D38042; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #f0cecb; + color: #D38042; + font-size: 0.9em; + a { + color: #D38042; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #faf0ef; + border: 1px solid black; + border-color: #f0cecb; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #D38042; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #F5D5C3; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #dcb67f; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + &.delete { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 10px 0; + padding: 0 0 0 0px; + div { + &.heading { + float: none; + clear: both; + overflow: hidden; + display: block; + margin: 0 0 0 0; + padding: 0; + background-color: #f5e8e8; + border: 1px solid black; + border-color: #e8c6c7; + h3 { + display: block; + clear: none; + float: left; + width: auto; + margin: 0; + padding: 0; + line-height: 1.1em; + font-size: 16px; + font-weight: normal; + color: black; + span { + margin: 0; + padding: 0; + &.http_method a { + text-transform: uppercase; + background-color: #a41e22; + text-decoration: none; + color: white; + display: inline-block; + width: 50px; + font-size: 0.7em; + text-align: center; + padding: 7px 0 4px 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -o-border-radius: 2px; + -ms-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; + } + &.path { + padding-left: 10px; + a { + color: black; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } + } + } + ul.options { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin: 6px 10px 0 0; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:first-child, &.first { + padding-left: 0; + } + &:last-child, &.last { + padding-right: 0; + border-right: none; + } + border-right-color: #e8c6c7; + color: #a41e22; + font-size: 0.9em; + a { + color: #a41e22; + text-decoration: none; + &:hover, &:active, &.active { + text-decoration: underline; + } + } + } + } + } + &.content { + background-color: #f7eded; + border: 1px solid black; + border-color: #e8c6c7; + border-top: none; + padding: 10px; + -moz-border-radius-bottomleft: 6px; + -webkit-border-bottom-left-radius: 6px; + -o-border-bottom-left-radius: 6px; + -ms-border-bottom-left-radius: 6px; + -khtml-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -moz-border-radius-bottomright: 6px; + -webkit-border-bottom-right-radius: 6px; + -o-border-bottom-right-radius: 6px; + -ms-border-bottom-right-radius: 6px; + -khtml-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + margin: 0 0 20px 0; + h4 { + color: #a41e22; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; + } + form input[type='text'].error { + outline: 2px solid black; + outline-color: #cc0000; + } + div { + &.sandbox_header { + float: none; + clear: both; + overflow: hidden; + display: block; + input.submit { + display: block; + clear: none; + float: left; + padding: 6px 8px; + } + img { + display: block; + display: block; + clear: none; + float: right; + } + a { + padding: 4px 0 0 10px; + color: #c8787a; + display: inline-block; + font-size: 0.9em; + } + } + &.response div.block { + background-color: #fcf6db; + border: 1px solid black; + border-color: #e5e0c6; + pre { + font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; + padding: 10px; + font-size: 0.9em; + max-height: 400px; + overflow-y: auto; + } + } + } + } + } + } + } + } + } + } +} + +.model-signature { + font-family: "Droid Sans", sans-serif; + font-size: 1em; + line-height: 1.5em; + .description span { + font-size: 0.9em; + line-height: 1.5em; + &:nth-child(odd) { + color: #333; + } + &:nth-child(even) { + color: #C5862B; + } + } + .signature-nav a { + text-decoration: none; + color: #AAA; + } + pre { + font-size: .85em; + line-height: 1.2em; + overflow: auto; + max-height: 200px; + cursor: pointer; + &:hover { + background-color: #ffffdd; + } + } + .snippet small { + font-size: 0.75em; + } + .signature-container { + clear: both; + } + .signature-nav { + a:hover { + text-decoration: underline; + color: black; + } + .selected { + color: black; + text-decoration: none; + } + } + ul.signature-nav { + float: none; + clear: both; + overflow: hidden; + margin: 0; + padding: 0; + display: block; + clear: none; + float: right; + margin-right: 5px; + margin-bottom: 5px; + li { + float: left; + clear: none; + margin: 0; + padding: 2px 10px; + border-right: 1px solid #dddddd; + &:last-child { + padding-right: 0; + border-right: none; + } + } + } +} + +pre code { + background: none; +} + +.content > .content-type > div > label { + clear: both; + display: block; + color: #0F6AB4; + font-size: 1.1em; + margin: 0; + padding: 15px 0 5px 0px; +} diff --git a/html/admin/js/lib/swagger-ui.js b/html/admin/js/lib/swagger-ui.js index ae8b67349f..6e2e9d4e39 100644 --- a/html/admin/js/lib/swagger-ui.js +++ b/html/admin/js/lib/swagger-ui.js @@ -369,28 +369,10 @@ function program15(depth0,data) { templates['main'] = template(function (Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [2,'>= 1.0.0-rc.3']; helpers = helpers || Handlebars.helpers; data = data || {}; - var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - var buffer = "", stack1; - buffer += "\n , api version: "; - if (stack1 = helpers.apiVersion) { stack1 = stack1.call(depth0, {hash:{},data:data}); } - else { stack1 = depth0.apiVersion; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; } - buffer += escapeExpression(stack1) - + "\n "; - return buffer; - } - buffer += "\n
';if(c=d.sampleJSON){c=c.call(k,{hash:{},data:i})}else{c=k.sampleJSON;c=typeof c===f?c.apply(k):c}g+=h(c)+'
\n \n ";if(u=g.notes){u=u.call(w,{hash:{},data:v})}else{u=w.notes;u=typeof u===i?u.apply(w):u}if(u||u===0){t+=u}t+="
\n\n
Parameter | \nValue | \nDescription | \nData Type | \n
---|
HTTP Status Code | \nReason | \n
---|
").text(this.formatXml(q.responseText));r=$('').append(p)}o=r;$(".response_code",$(this.el)).html(""+q.status+"");$(".response_body",$(this.el)).html(o);$(".response_headers",$(this.el)).html("
"+q.getAllResponseHeaders()+"");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();return hljs.highlightBlock($(".response_body",$(this.el))[0])};l.prototype.toggleOperationContent=function(){var n;n=$("#"+Docs.escapeResourceName(this.model.resourceName)+"_"+this.model.nickname+"_"+this.model.httpMethod+"_"+this.model.number+"_content");if(n.is(":visible")){return Docs.collapseOperation(n)}else{return Docs.expandOperation(n)}};return l})(Backbone.View);i=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));return this};l.prototype.template=function(){return Handlebars.templates.status_code};return l})(Backbone.View);e=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var q,o,n,r,p;if(this.model.paramType==="body"){this.model.isBody=true}if(this.model.dataType==="file"){this.model.isFile=true}p=this.template();$(this.el).html(p(this.model));n={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){r=new k({model:n,tagName:"div"});$(".model-signature",$(this.el)).append(r.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}q={isParam:false};if(this.model.supportedContentTypes){q.produces=this.model.supportedContentTypes}if(this.model.produces){q.produces=this.model.produces}o=new f({model:q});$(".content-type",$(this.el)).append(o.render().el);return this};l.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return l})(Backbone.View);k=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.switchToDescription();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};l.prototype.template=function(){return Handlebars.templates.signature};l.prototype.switchToDescription=function(n){if(n!=null){n.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};l.prototype.switchToSnippet=function(n){if(n!=null){n.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};l.prototype.snippetToTextArea=function(n){var o;if(this.isParam){if(n!=null){n.preventDefault()}o=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(o.val())===""){return o.val(this.model.sampleJSON)}}};return l})(Backbone.View);f=(function(l){d(m,l);function m(){return m.__super__.constructor.apply(this,arguments)}m.prototype.initialize=function(){};m.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.isParam=this.model.isParam;if(this.isParam){$("label[for=contentType]",$(this.el)).text("Parameter content type:")}else{$("label[for=contentType]",$(this.el)).text("Response Content Type")}return this};m.prototype.template=function(){return Handlebars.templates.content_type};return m})(Backbone.View)}).call(this); \ No newline at end of file +$(function(){$.fn.vAlign=function(){return this.each(function(c){var a=$(this).height();var d=$(this).parent().height();var b=(d-a)/2;$(this).css("margin-top",b)})};$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(b){var d=$(this).closest("form").innerWidth();var c=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10);var a=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",d-c-a)})};$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent();$("ul.downplayed li div.content p").vAlign();$("form.sandbox").submit(function(){var a=true;$(this).find("input.required").each(function(){$(this).removeClass("error");if($(this).val()==""){$(this).addClass("error");$(this).wiggle();a=false}});return a})});function clippyCopiedCallback(b){$("#api_key_copied").fadeIn().delay(1000).fadeOut()}function log(){if(window.console){console.log.apply(console,arguments)}}if(Function.prototype.bind&&console&&typeof console.log=="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.bind(console[a],console)},Function.prototype.call)}var Docs={shebang:function(){var b=$.param.fragment().split("/");b.shift();switch(b.length){case 1:var d="resource_"+b[0];Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});break;case 2:Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});var c=b.join("_");var a=c+"_content";Docs.expandOperation($("#"+a));$("#"+c).slideto({highlight:false});break}},toggleEndpointListForResource:function(b){var a=$("li#resource_"+Docs.escapeResourceName(b)+" ul.endpoints");if(a.is(":visible")){Docs.collapseEndpointListForResource(b)}else{Docs.expandEndpointListForResource(b)}},expandEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);if(b==""){$(".resource ul.endpoints").slideDown();return}$("li#resource_"+b).addClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideDown()},collapseEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);$("li#resource_"+b).removeClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideUp()},expandOperationsForResource:function(a){Docs.expandEndpointListForResource(a);if(a==""){$(".resource ul.endpoints li.operation div.content").slideDown();return}$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(a){Docs.expandEndpointListForResource(a);$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(a){return a.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(a){a.slideDown()},collapseOperation:function(a){a.slideUp()}};(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly_required=b(function(g,m,f,l,k){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||g.helpers;k=k||{};var i="",d,h="function",j=this.escapeExpression,n=this;function e(r,q){var o="",p;o+="\n \n ";return o}function c(r,q){var o="",p;o+="\n ";if(p=f.defaultValue){p=p.call(r,{hash:{},data:q})}else{p=r.defaultValue;p=typeof p===h?p.apply(r):p}o+=j(p)+"\n ";return o}i+="
';if(c=d.sampleJSON){c=c.call(k,{hash:{},data:i})}else{c=k.sampleJSON;c=typeof c===f?c.apply(k):c}g+=h(c)+'
\n \n ";if(u=g.notes){u=u.call(w,{hash:{},data:v})}else{u=w.notes;u=typeof u===i?u.apply(w):u}if(u||u===0){t+=u}t+="
\n\n
Parameter | \nValue | \nDescription | \nData Type | \n
---|
HTTP Status Code | \nReason | \n
---|
").text(this.formatXml(q.responseText));r=$('').append(p)}o=r;$(".response_code",$(this.el)).html(""+q.status+"");$(".response_body",$(this.el)).html(o);$(".response_headers",$(this.el)).html("
"+q.getAllResponseHeaders()+"");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();return hljs.highlightBlock($(".response_body",$(this.el))[0])};l.prototype.toggleOperationContent=function(){var n;n=$("#"+Docs.escapeResourceName(this.model.resourceName)+"_"+this.model.nickname+"_"+this.model.httpMethod+"_"+this.model.number+"_content");if(n.is(":visible")){return Docs.collapseOperation(n)}else{return Docs.expandOperation(n)}};return l})(Backbone.View);i=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));return this};l.prototype.template=function(){return Handlebars.templates.status_code};return l})(Backbone.View);e=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var q,o,n,r,p;if(this.model.paramType==="body"){this.model.isBody=true}if(this.model.dataType==="file"){this.model.isFile=true}p=this.template();$(this.el).html(p(this.model));n={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){r=new k({model:n,tagName:"div"});$(".model-signature",$(this.el)).append(r.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}q={isParam:false};if(this.model.supportedContentTypes){q.produces=this.model.supportedContentTypes}if(this.model.produces){q.produces=this.model.produces}o=new f({model:q});$(".content-type",$(this.el)).append(o.render().el);return this};l.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return l})(Backbone.View);k=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.switchToDescription();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};l.prototype.template=function(){return Handlebars.templates.signature};l.prototype.switchToDescription=function(n){if(n!=null){n.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};l.prototype.switchToSnippet=function(n){if(n!=null){n.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};l.prototype.snippetToTextArea=function(n){var o;if(this.isParam){if(n!=null){n.preventDefault()}o=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(o.val())===""){return o.val(this.model.sampleJSON)}}};return l})(Backbone.View);f=(function(l){d(m,l);function m(){return m.__super__.constructor.apply(this,arguments)}m.prototype.initialize=function(){};m.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.isParam=this.model.isParam;if(this.isParam){$("label[for=contentType]",$(this.el)).text("Parameter content type:")}else{$("label[for=contentType]",$(this.el)).text("Response Content Type")}return this};m.prototype.template=function(){return Handlebars.templates.content_type};return m})(Backbone.View)}).call(this); \ No newline at end of file diff --git a/html/admin/js/templates/apiView.ejs b/html/admin/js/templates/apiView.ejs index 9d5d144421..c1406f027d 100644 --- a/html/admin/js/templates/apiView.ejs +++ b/html/admin/js/templates/apiView.ejs @@ -1,4 +1,3 @@ -