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

Modifies the static files to add Playwire branding and point to API doc #480

Closed
Closed
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
18 changes: 6 additions & 12 deletions dist/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -1158,21 +1158,15 @@
cursor: pointer;
}
.swagger-section #header {
background-color: #89bf04;
padding: 14px;
}
.swagger-section #header a#logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white;
background-color: #f3f3f3;
padding: 10px;
}

.swagger-section #header form#api_selector {
display: block;
clear: none;
float: right;
margin-top: 15px;
}
.swagger-section #header form#api_selector .input {
display: block;
Expand All @@ -1193,7 +1187,7 @@
padding: 6px 8px;
font-size: 0.9em;
color: white;
background-color: #547f00;
background-color: #0f6ab4;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-o-border-radius: 4px;
Expand All @@ -1202,7 +1196,7 @@
border-radius: 4px;
}
.swagger-section #header form#api_selector .input a#explore:hover {
background-color: #547f00;
background-color: #0f6ab4;
}
.swagger-section #header form#api_selector .input input {
font-size: 0.9em;
Expand Down
Binary file added dist/images/playwire_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 3 additions & 9 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<script type="text/javascript">
$(function () {
window.swaggerUi = new SwaggerUi({
url: "http://petstore.swagger.wordnik.com/api/api-docs",
/* TODO: Remove "dev." once API documentation is available in production. */
url: "http://dev.phoenix.playwire.com/api/doc",
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){
Expand Down Expand Up @@ -66,16 +67,9 @@
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.wordnik.com">swagger</a>
<a id="logo" href="http://phoenix.playwire.com/"><img src="images/playwire_logo.png" title="Playwire - Video Made Simple" alt="Playwire - Video Made Simple"></a>
<form id='api_selector'>
<div class='input icon-btn'>
<img id="show-pet-store-icon" src="images/pet_store_api.png" title="Show Swagger Petstore Example Apis">
</div>
<div class='input icon-btn'>
<img id="show-wordnik-dev-icon" src="images/wordnik_api.png" title="Show Wordnik Developer Apis">
</div>
<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="#">Explore</a></div>
</form>
</div>
Expand Down