forked from cjmamo/kafka-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped up version to 2.1.0-SNAPSHOT; added RAML API Console
- Loading branch information
Showing
40 changed files
with
123,368 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2014 Claude Mamo | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
package controllers | ||
|
||
import play.api.mvc.{AnyContent, Action, Controller} | ||
|
||
object ApiConsole extends Controller{ | ||
def at(path: String, file: String): Action[AnyContent] = { | ||
Assets.at(path, file) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name := "kafka-web-console" | ||
|
||
version := "2.0.0" | ||
version := "2.1.0-SNAPSHOT" | ||
|
||
libraryDependencies ++= Seq( | ||
jdbc, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<script type='text/javascript'> | ||
function getVariable(string, variable) { | ||
var vars = string.split('&'); | ||
for (var i = 0; i < vars.length; i++) { | ||
var pair = vars[i].split('='); | ||
if (decodeURIComponent(pair[0]) == variable) { | ||
return decodeURIComponent(pair[1]); | ||
} | ||
} | ||
|
||
return undefined; | ||
} | ||
|
||
function getQueryVariable(variable) { | ||
var query = window.location.search.substring(1); | ||
return getVariable(query, variable); | ||
} | ||
|
||
var result = { | ||
token: getQueryVariable('oauth_token'), | ||
verifier: getQueryVariable('oauth_verifier') | ||
}; | ||
|
||
window.opener.RAML.authorizationSuccess(result); | ||
window.close(); | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<script type='text/javascript'> | ||
function getVariable(string, variable) { | ||
var vars = string.split('&'); | ||
for (var i = 0; i < vars.length; i++) { | ||
var pair = vars[i].split('='); | ||
if (decodeURIComponent(pair[0]) == variable) { | ||
return decodeURIComponent(pair[1]); | ||
} | ||
} | ||
|
||
return undefined; | ||
} | ||
|
||
function getFragmentVariable(variable) { | ||
var hash = window.location.hash.substring(1); | ||
return getVariable(hash, variable); | ||
} | ||
|
||
function getQueryVariable(variable) { | ||
var query = window.location.search.substring(1); | ||
return getVariable(query, variable); | ||
} | ||
|
||
var result = getFragmentVariable('access_token') || getQueryVariable('code'); | ||
window.opener.RAML.authorizationSuccess(result); | ||
window.close(); | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
Binary file not shown.
Oops, something went wrong.