Skip to content

Commit de816fb

Browse files
author
Sabbir Hossain Rupom
committed
Test console UI updated
1 parent 6a5ca26 commit de816fb

File tree

4 files changed

+19
-31
lines changed

4 files changed

+19
-31
lines changed

console/console.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ $(function () {
99
var browserUrl = document.location.href;
1010
if (apiUrl != browserUrl && apiUrl.includes('localhost')) {
1111
apiUrl = browserUrl.replace('/console', '');
12+
if (apiUrl.includes('#')) {
13+
apiUrl = apiUrl.split("#")[0];
14+
}
1215
if (apiUrl.substr(apiUrl.length - 1) == '/') {
1316
apiUrl = apiUrl.slice(0, -1);
1417
}
@@ -210,25 +213,3 @@ function syntaxHighlight(json) {
210213
}
211214
return json;
212215
}
213-
214-
215-
216-
217-
218-
219-
220-
221-
222-
223-
224-
225-
226-
227-
228-
229-
230-
231-
232-
233-
234-

console/console.min.js

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

console/index.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,27 @@
77
<title>API Console</title>
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
99
<link rel="stylesheet" href="styles.css">
10+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" crossorigin="anonymous">
1011
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
1112
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
1213
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
1314
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha256.js"></script>
1415
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/enc-base64-min.js"></script>
16+
1517
<script src="console.js"></script>
1618

1719
</head>
1820
<body>
1921
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
2022
<!-- Brand -->
2123
<a class="navbar-brand" href="#">API Console</a>
22-
<ul class="navbar-nav">
24+
<ul class="navbar-nav ml-auto">
2325
<li class="nav-item">
24-
<a class="nav-link" href="https://github.com/sabbir-rupom/rest-api-flight#readme">Documentation</a>
26+
<a class="nav-link" href="https://github.com/sabbir-rupom/rest-api-flight#readme">
27+
<i class="fa fa-file"></i>&nbsp;&nbsp;Documentation
28+
</a>
2529
</li>
30+
2631
</ul>
2732
</nav>
2833

@@ -149,4 +154,5 @@
149154
</div>
150155
</div>
151156
</body>
152-
</html>
157+
</html>
158+

customs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"elements":{},"attributes":{"integrity":{"context":"link"}}}

0 commit comments

Comments
 (0)