Skip to content
Open
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
7 changes: 7 additions & 0 deletions .idea/ant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

587 changes: 517 additions & 70 deletions .idea/workspace.xml

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Mingle Integration (draft)" title_url="http://sites.google.com/"
description="Mingle Integration (draft)"
thumbnail="http://www.gstatic.com/sites-gadgets/common/images/sites-icon-gadget-thumb.png"
screenshot="http://www.gstatic.com/sites-gadgets/common/images/sites-icon-gadget-ss.png"
height="800" width="600" author="Google">
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="credentials" display_name="Credentials" required="true"/>
<Content type="html">
<![CDATA[
<div id=content_div>qwe</div>
<div id="debug_div" style="font-size:9pt; padding:5px; color: red;"></div>
<script type="text/javascript">
// setup variables
var debug_html = "";
print("starting...");
var prefs = new gadgets.Prefs();
var credentials = prefs.getString('credentials');
var height = 800;
var width = 600;

if (gadgets.window) {
var viewport = gadgets.window.getViewportDimensions();
if (viewport.width) {
var width = viewport.width;
}
if (viewport.height) {
var height = viewport.height;
}
}
print("requesting...");
var url = "https://minglehosting.thoughtworks.com/kohls/api/v2/projects/project_3551_cicd/cards/execute_mql.xml?mql=SELECT sprint WHERE type = story AND Sprint=(Current sprint)";
var client = new XMLHttpRequest();
client.open("GET", url, false, "oleg.aravin", "12345");

client.setRequestHeader("Content-Type", "text/plain");
client.setRequestHeader('Accept', 'application/xml');
client.withCredentials = true;
client.send();
print("response...");
print("readyState: " + client.readyState);
if (client.readyState === 4 && client.status === 200)
document.getElementById("content_div").innerHTML = client.responseText;
else
document.getElementById("content_div").innerHTML = client.status + " " + client.statusText + ".";

function print(msg) {
debug_html += msg;
// Write debug HTML to div
document.getElementById("debug_div").innerHTML = debug_html;
}
</script>

]]>
</Content>
</Module>
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@







<groupId>example</groupId>


Expand Down
Binary file added target/example-1.0.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Sat May 25 12:30:29 PDT 2013
version=1.0
groupId=example
artifactId=example