Skip to content

Commit 1ef90c4

Browse files
committed
rewrote into source files, generate using gulp
1 parent d99c6ce commit 1ef90c4

File tree

10 files changed

+1464
-715
lines changed

10 files changed

+1464
-715
lines changed

dist/css/style.css

Lines changed: 248 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,250 @@
1+
.swagger-section #header a#logo {
2+
font-size: 1.5em;
3+
font-weight: bold;
4+
text-decoration: none;
5+
background: transparent url(../images/logo.png) no-repeat left center;
6+
padding: 20px 0 20px 40px;
7+
}
8+
#text-head {
9+
font-size: 80px;
10+
font-family: 'Roboto', sans-serif;
11+
color: #ffffff;
12+
float: right;
13+
margin-right: 20%;
14+
}
15+
.navbar-fixed-top .navbar-nav {
16+
height: auto;
17+
}
18+
.navbar-fixed-top .navbar-brand {
19+
height: auto;
20+
}
21+
.navbar-header {
22+
height: auto;
23+
}
24+
.navbar-inverse {
25+
background-color: #000;
26+
border-color: #000;
27+
}
28+
#navbar-brand {
29+
margin-left: 20%;
30+
}
31+
.navtext {
32+
font-size: 10px;
33+
}
34+
.h1,
35+
h1 {
36+
font-size: 60px;
37+
}
38+
.navbar-default .navbar-header .navbar-brand {
39+
color: #a2dfee;
40+
}
41+
/* tag titles */
42+
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
43+
color: #393939;
44+
font-family: 'Arvo', serif;
45+
font-size: 1.5em;
46+
}
47+
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
48+
color: black;
49+
}
50+
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
51+
color: #525252;
52+
padding-left: 0px;
53+
display: block;
54+
clear: none;
55+
float: left;
56+
font-family: 'Arvo', serif;
57+
font-weight: bold;
58+
}
59+
.navbar-default .navbar-collapse,
60+
.navbar-default .navbar-form {
61+
border-color: #0A0A0A;
62+
}
63+
.container1 {
64+
width: 1500px;
65+
margin: auto;
66+
margin-top: 0;
67+
background-image: url('../images/shield.png');
68+
background-repeat: no-repeat;
69+
background-position: -40px -20px;
70+
margin-bottom: 210px;
71+
}
72+
.container-inner {
73+
width: 1200px;
74+
margin: auto;
75+
background-color: rgba(223, 227, 228, 0.75);
76+
padding-bottom: 40px;
77+
padding-top: 40px;
78+
border-radius: 15px;
79+
}
80+
.header-content {
81+
padding: 0;
82+
width: 1000px;
83+
}
84+
.title1 {
85+
font-size: 80px;
86+
font-family: 'Vollkorn', serif;
87+
color: #404040;
88+
text-align: center;
89+
padding-top: 40px;
90+
padding-bottom: 100px;
91+
}
92+
#icon {
93+
margin-top: -18px;
94+
}
95+
.subtext {
96+
font-size: 25px;
97+
font-style: italic;
98+
color: #08b;
99+
text-align: right;
100+
padding-right: 250px;
101+
}
102+
.bg-primary {
103+
background-color: #00468b;
104+
}
105+
.navbar-default .nav > li > a,
106+
.navbar-default .nav > li > a:focus {
107+
color: #08b;
108+
}
109+
.navbar-default .nav > li > a,
110+
.navbar-default .nav > li > a:hover {
111+
color: #08b;
112+
}
113+
.navbar-default .nav > li > a,
114+
.navbar-default .nav > li > a:focus:hover {
115+
color: #08b;
116+
}
117+
.text-faded {
118+
font-size: 25px;
119+
font-family: 'Vollkorn', serif;
120+
}
121+
.section-heading {
122+
font-family: 'Vollkorn', serif;
123+
font-size: 45px;
124+
padding-bottom: 10px;
125+
}
126+
hr {
127+
border-color: #00468b;
128+
padding-bottom: 10px;
129+
}
130+
.description {
131+
margin-top: 20px;
132+
padding-bottom: 200px;
133+
}
134+
.description li {
135+
font-family: 'Vollkorn', serif;
136+
font-size: 25px;
137+
color: #525252;
138+
margin-left: 28%;
139+
padding-top: 5px;
140+
}
141+
.gap {
142+
margin-top: 200px;
143+
}
144+
.troubleshootingtext {
145+
color: rgba(255, 255, 255, 0.7);
146+
padding-left: 30%;
147+
}
148+
.troubleshootingtext li {
149+
list-style-type: circle;
150+
font-size: 25px;
151+
padding-bottom: 5px;
152+
}
153+
.overlay {
154+
position: absolute;
155+
top: 0;
156+
left: 0;
157+
width: 100%;
158+
height: 100%;
159+
z-index: 1000;
160+
}
161+
.block.response_body.json:hover {
162+
cursor: pointer;
163+
}
164+
.backdrop {
165+
color: blue;
166+
}
167+
#myModal {
168+
height: 100%;
169+
}
170+
.modal-backdrop {
171+
bottom: 0;
172+
position: fixed;
173+
}
1174
.curl {
2-
padding: 10px;
3-
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
4-
font-size: 0.9em;
5-
max-height: 400px;
6-
margin-top: 5px;
7-
overflow-y: auto;
8-
background-color: #fcf6db;
9-
border: 1px solid #e5e0c6;
10-
border-radius: 4px;
11-
12-
}
13-
175+
padding: 10px;
176+
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
177+
font-size: 0.9em;
178+
max-height: 400px;
179+
margin-top: 5px;
180+
overflow-y: auto;
181+
background-color: #fcf6db;
182+
border: 1px solid #e5e0c6;
183+
border-radius: 4px;
184+
}
14185
.curl_title {
15-
font-size: 1.1em;
16-
margin: 0;
17-
padding: 15px 0 5px;
18-
font-family: 'Open Sans','Helvetica Neue',Arial,sans-serif;
19-
font-weight: 500;
20-
line-height: 1.1;
21-
}
186+
font-size: 1.1em;
187+
margin: 0;
188+
padding: 15px 0 5px;
189+
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
190+
font-weight: 500;
191+
line-height: 1.1;
192+
}
193+
.footer {
194+
display: none;
195+
}
196+
.swagger-section .swagger-ui-wrap h2 {
197+
padding: 0;
198+
}
199+
h2 {
200+
margin: 0;
201+
margin-bottom: 5px;
202+
}
203+
.markdown p {
204+
font-size: 15px;
205+
font-family: 'Arvo', serif;
206+
}
207+
.swagger-section .swagger-ui-wrap .code {
208+
font-size: 15px;
209+
font-family: 'Arvo', serif;
210+
}
211+
.swagger-section .swagger-ui-wrap b {
212+
font-family: 'Arvo', serif;
213+
}
214+
#signin:hover {
215+
cursor: pointer;
216+
}
217+
.dropdown-menu {
218+
padding: 15px;
219+
}
220+
.navbar-right .dropdown-menu {
221+
left: 0;
222+
right: auto;
223+
}
224+
#signinbutton {
225+
width: 100%;
226+
height: 32px;
227+
font-size: 13px;
228+
font-weight: bold;
229+
color: #08b;
230+
}
231+
.navbar-default .nav > li .details {
232+
color: #000000;
233+
text-transform: none;
234+
font-size: 15px;
235+
font-weight: normal;
236+
font-family: 'Open Sans', sans-serif;
237+
font-style: italic;
238+
line-height: 20px;
239+
top: -2px;
240+
}
241+
.navbar-default .nav > li .details:hover {
242+
color: black;
243+
}
244+
#signout {
245+
width: 100%;
246+
height: 32px;
247+
font-size: 13px;
248+
font-weight: bold;
249+
color: #08b;
250+
}

dist/index.html

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
1010
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
1111
<link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
12-
<link href='css/style.css' media='screen' rel='stylesheet' type='text/css' />
13-
1412
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
1513
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
1614
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
@@ -99,113 +97,5 @@
9997

10098
<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
10199
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
102-
103-
<!-- Curl Script -->
104-
105-
<script type="text/javascript">
106-
$('body.swagger-section').on('click', '.sandbox_header', function(){
107-
setTimeout(function(){
108-
109-
var parent = $(this).closest('.content');
110-
var nearest = parent.find('.response');
111-
112-
//create a way to input specific username and password variables
113-
//to generate base 64 bits. (i.e. a sign in menu)
114-
//var username = $("#user").val();
115-
//var password = $("#password").val();
116-
117-
118-
//var authcode = btoa(username + ":" + password);
119-
120-
parent.find('.response .curl').remove();
121-
parent.find('.response .curl_title').remove();
122-
123-
//authcode = "Basic " + authcode;
124-
125-
var method = $(this).closest('.endpoint').find('.http_method .toggleOperation').html().toUpperCase();
126-
var parameters = $(this).closest('.endpoint').find('.body-textarea.required').val();
127-
128-
var tag = $(this).closest('.resource.active').attr('id').substring(9);
129-
130-
var methodId = $(this).closest('.endpoint').find('.operations').children().attr('id').substring(tag.length + 1);
131-
var paras = $(this).closest('.endpoint').find('.operation-params').children();
132-
133-
function parametersFunc(){
134-
var output = '';
135-
var counter = 0;
136-
var current = paras[counter];
137-
var result = new Object();
138-
console.log(result);
139-
140-
while (current != undefined){
141-
142-
var parameter = $($(current).children()[0]).html();
143-
console.log(parameter);
144-
var value = $($(current).children()[1]).children().val();
145-
console.log(value);
146-
result[parameter] = value;
147-
counter++;
148-
current = paras[counter];
149-
}
150-
console.log(result);
151-
return result;
152-
153-
};
154-
155-
156-
157-
var curlCommand = swaggerUi.api[tag][methodId].asCurl(parametersFunc());
158-
159-
160-
161-
162-
$('<div/>', {
163-
class: 'curl',
164-
text: curlCommand,
165-
}).prependTo(nearest);
166-
167-
$('<h4>', {
168-
class: 'curl_title',
169-
text: 'Curl',
170-
}).prependTo(nearest);
171-
172-
173-
174-
}.bind(this), 500)});
175-
176-
</script>
177-
178-
179-
180-
<!--Double click to highlight all Curl -->
181-
<script type="text/javascript">
182-
183-
function SelectText(element) {
184-
var doc = document,
185-
text = element,
186-
range,
187-
selection;
188-
if (doc.body.createTextRange) {
189-
range = document.body.createTextRange();
190-
range.moveToElementText(text);
191-
range.select();
192-
} else if (window.getSelection) {
193-
selection = window.getSelection();
194-
range = document.createRange();
195-
range.selectNodeContents(text);
196-
selection.removeAllRanges();
197-
selection.addRange(range);
198-
}
199-
}
200-
201-
202-
203-
$('body.swagger-section').on('dblclick', '.curl', function(){
204-
SelectText($(this)[0].childNodes[0]);
205-
});
206-
207-
208-
</script>
209-
210100
</body>
211101
</html>

dist/lib/bootstrap.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)