Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api 655 #1958

Closed
wants to merge 10 commits into from
Closed

Api 655 #1958

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 8 additions & 7 deletions dist/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1231,8 +1231,10 @@
cursor: pointer;
}
.swagger-section #header {
background-color: #89bf04;
background-image: url(../images/bg-nav.jpg);
border-bottom: 1px solid #e6e7e8;
padding: 14px;
display: none;
}
.swagger-section #input_baseUrl {
width: 400px;
Expand Down Expand Up @@ -1275,12 +1277,11 @@
background-color: #547f00;
}
.swagger-section #header #logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
background-image: url(../images/leisurelink_logo.png);
background-position: left center;
background-repeat: no-repeat;
background-size: contain;
padding: 20px 0 20px 40px;
color: white;
}
.swagger-section #content_message {
margin: 10px 15px;
Expand Down
Binary file added dist/images/bg-nav.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/favicon-16x16.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/favicon-32x32.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/favicon.ico
100755 → 100644
Binary file not shown.
Binary file added dist/images/leisurelink_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 22 additions & 8 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<!--

WARNING:

LEISURELINK pulls in swagger-ui through @leisurelink/hapi-swaggered-ui which templates this file!

Any changes here are for stand-alone local development only - and will be bypassed when served through hapi-swaggered

To make changes to index - update @leisurelink/hapi-swaggered-ui/templates/index.hbs

-->
<!DOCTYPE html>
<html>
<head>
Expand Down Expand Up @@ -31,11 +41,13 @@

<script type="text/javascript">
$(function () {
$('#header').css('display', /embed=true/.test(window.location.search) ? 'none' : 'block');

var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "http://petstore.swagger.io/v2/swagger.json";
url = "/specs/v2/leisurelink-v2-public-api.demo.json";
}

// Pre load translate...
Expand All @@ -52,7 +64,7 @@
clientId: "your-client-id",
clientSecret: "your-client-secret-if-required",
realm: "your-realms",
appName: "your-app-name",
appName: "your-app-name",
scopeSeparator: ",",
additionalQueryStringParams: {}
});
Expand Down Expand Up @@ -109,16 +121,18 @@
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.io">swagger</a>
<form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
<div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div>
</form>
<div id="logo"></div>
</div>
</div>

<div id="message-bar" class="swagger-ui-wrap" data-sw-translate>&nbsp;</div>
<div class="swagger-ui-wrap">
<form id='api_selector'>
<!-- <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div> -->
<div class='input'><input placeholder="Enter your apiKey here..." id="input_apiKey" name="apiKey" type="text"/></div>
<!-- <div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div> -->
</form>
</div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>
4 changes: 2 additions & 2 deletions dist/swagger-ui.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
* @version v2.1.4
* @leisurelink/swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
* @version v1.0.2+2.1.4
* @link http://swagger.io
* @license Apache-2.0
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/swagger-ui.min.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"name": "swagger-ui",
"name": "@leisurelink/swagger-ui",
"author": "Tony Tam <[email protected]>",
"contributors": [
{
"name": "Mohsen Azimi",
"email": "[email protected]"
},
{
"name": "David Jones",
"email": "[email protected]"
}
],
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"version": "2.1.4",
"version": "1.0.2+2.1.4",
"homepage": "http://swagger.io",
"license": "Apache-2.0",
"main": "dist/swagger-ui.js",
Expand All @@ -18,11 +22,12 @@
"prejshint": "gulp",
"jshint": "jshint .",
"pretest": "npm run jshint",
"preversion": "\n#############\nnpm version does not support semver build-meta, you must version manually\n#############\n",
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/swagger-api/swagger-ui.git"
"url": "https://github.com/leisurelink/swagger-ui.git"
},
"readmeFilename": "README.md",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/html/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 8 additions & 7 deletions src/main/html/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1231,8 +1231,10 @@
cursor: pointer;
}
.swagger-section #header {
background-color: #89bf04;
background-image: url(../images/bg-nav.jpg);
border-bottom: 1px solid #e6e7e8;
padding: 14px;
display: none;
}
.swagger-section #input_baseUrl {
width: 400px;
Expand Down Expand Up @@ -1275,12 +1277,11 @@
background-color: #547f00;
}
.swagger-section #header #logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
background-image: url(../images/leisurelink_logo.png);
background-position: left center;
background-repeat: no-repeat;
background-size: contain;
padding: 20px 0 20px 40px;
color: white;
}
.swagger-section #content_message {
margin: 10px 15px;
Expand Down
Binary file added src/main/html/images/bg-nav.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/html/images/favicon-16x16.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/html/images/favicon-32x32.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/html/images/favicon.ico
100755 → 100644
Binary file not shown.
Binary file added src/main/html/images/leisurelink_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 22 additions & 8 deletions src/main/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<!--

WARNING:

LEISURELINK pulls in swagger-ui through @leisurelink/hapi-swaggered-ui which templates this file!

Any changes here are for stand-alone local development only - and will be bypassed when served through hapi-swaggered

To make changes to index - update @leisurelink/hapi-swaggered-ui/templates/index.hbs

-->
<!DOCTYPE html>
<html>
<head>
Expand Down Expand Up @@ -31,11 +41,13 @@

<script type="text/javascript">
$(function () {
$('#header').css('display', /embed=true/.test(window.location.search) ? 'none' : 'block');

var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "http://petstore.swagger.io/v2/swagger.json";
url = "/specs/v2/leisurelink-v2-public-api.demo.json";
}

// Pre load translate...
Expand All @@ -52,7 +64,7 @@
clientId: "your-client-id",
clientSecret: "your-client-secret-if-required",
realm: "your-realms",
appName: "your-app-name",
appName: "your-app-name",
scopeSeparator: ",",
additionalQueryStringParams: {}
});
Expand Down Expand Up @@ -109,16 +121,18 @@
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.io">swagger</a>
<form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
<div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div>
</form>
<div id="logo"></div>
</div>
</div>

<div id="message-bar" class="swagger-ui-wrap" data-sw-translate>&nbsp;</div>
<div class="swagger-ui-wrap">
<form id='api_selector'>
<!-- <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div> -->
<div class='input'><input placeholder="Enter your apiKey here..." id="input_apiKey" name="apiKey" type="text"/></div>
<!-- <div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div> -->
</form>
</div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>
15 changes: 8 additions & 7 deletions src/main/less/screen.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@
}

#header {
background-color: #89bf04;
background-image: url(../images/bg-nav.jpg);
border-bottom: 1px solid #e6e7e8;
padding: 14px;
display: none;
}

#input_baseUrl { width: 400px; }
Expand Down Expand Up @@ -122,12 +124,11 @@
}

#header #logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
background-image: url(../images/leisurelink_logo.png);
background-position: left center;
background-repeat: no-repeat;
background-size: contain;
padding: 20px 0 20px 40px;
color: white;
}

#content_message {
Expand All @@ -141,7 +142,7 @@
text-align: center;
padding-top: 10px;
}

.swagger-collapse:before {
content: "-";
}
Expand Down
Loading