forked from WeaveTeam/Weave-Binaries
-
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.
- Loading branch information
UMass Lowell IVPR
authored and
iweave-build
committed
Nov 2, 2015
0 parents
commit 0a478c6
Showing
23 changed files
with
1,349 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[InternetShortcut] | ||
URL=http://bugs.oicweave.org/projects/weave/wiki/Deployment_Guide | ||
HotKey=0 | ||
IDList= | ||
[{000214A0-0000-0000-C000-000000000046}] | ||
Prop3=19,2 |
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,7 @@ | ||
This archive contains the binary output files from a build of Weave. | ||
|
||
Download the latest build here: https://github.com/IVPR/Weave-Binaries/zipball/master | ||
|
||
If you want the source files instead, go here: http://www.github.com/IVPR/Weave | ||
|
||
Installation instructions are available here: http://info.oicweave.org/projects/weave/wiki/Deployment_Guide |
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,108 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<!-- saved from url=(0014)about:internet --> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||
<!-- | ||
Smart developers always View Source. | ||
This application was built using Adobe Flex, an open source framework | ||
for building rich Internet applications that get delivered via the | ||
Flash Player or to desktops via Adobe AIR. | ||
Learn more about Flex at http://flex.org | ||
// --> | ||
<head> | ||
<title>Weave Admin Console</title> | ||
<meta name="google" value="notranslate" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<!-- Include CSS to eliminate any default margins/padding and set the height of the html element and | ||
the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as | ||
the percentage of the height of its parent container, which has to be set explicitly. Fix for | ||
Firefox 3.6 focus border issues. Initially, don't display flashContent div so it won't show | ||
if JavaScript disabled. | ||
--> | ||
<style type="text/css" media="screen"> | ||
html, body { height:100%; } | ||
body { margin:0; padding:0; overflow:auto; text-align:center; | ||
background-color: #FFFFFF; } | ||
object:focus { outline:none; } | ||
#flashContent { display:none; } | ||
</style> | ||
|
||
<!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens --> | ||
<!-- BEGIN Browser History required section ${useBrowserHistory}> | ||
<link rel="stylesheet" type="text/css" href="history/history.css" /> | ||
<script type="text/javascript" src="history/history.js"></script> | ||
<!${useBrowserHistory} END Browser History required section --> | ||
|
||
<script type="text/javascript" src="swfobject.js"></script> | ||
<script type="text/javascript"> | ||
// For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. | ||
var swfVersionStr = "10.2.0"; | ||
// To use express install, set to playerProductInstall.swf, otherwise the empty string. | ||
var xiSwfUrlStr = "playerProductInstall.swf"; | ||
var flashvars = {}; | ||
var params = {}; | ||
params.quality = "high"; | ||
params.bgcolor = "#FFFFFF"; | ||
params.allowscriptaccess = "sameDomain"; | ||
params.allowfullscreen = "true"; | ||
var attributes = {}; | ||
attributes.id = "AdminConsole"; | ||
attributes.name = "AdminConsole"; | ||
attributes.align = "middle"; | ||
swfobject.embedSWF( | ||
"AdminConsole.swf", "flashContent", | ||
"100%", "100%", | ||
swfVersionStr, xiSwfUrlStr, | ||
flashvars, params, attributes); | ||
// JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. | ||
swfobject.createCSS("#flashContent", "display:block;text-align:left;"); | ||
</script> | ||
</head> | ||
<body> | ||
<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough | ||
JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show | ||
when JavaScript is disabled. | ||
--> | ||
<div id="flashContent"> | ||
<p> | ||
To view this page ensure that Adobe Flash Player version | ||
10.2.0 or greater is installed. | ||
</p> | ||
<script type="text/javascript"> | ||
var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); | ||
document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" | ||
+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); | ||
</script> | ||
</div> | ||
|
||
<noscript> | ||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="AdminConsole"> | ||
<param name="movie" value="AdminConsole.swf" /> | ||
<param name="quality" value="high" /> | ||
<param name="bgcolor" value="#FFFFFF" /> | ||
<param name="allowScriptAccess" value="sameDomain" /> | ||
<param name="allowFullScreen" value="true" /> | ||
<!--[if !IE]>--> | ||
<object type="application/x-shockwave-flash" data="AdminConsole.swf" width="100%" height="100%"> | ||
<param name="quality" value="high" /> | ||
<param name="bgcolor" value="#FFFFFF" /> | ||
<param name="allowScriptAccess" value="sameDomain" /> | ||
<param name="allowFullScreen" value="true" /> | ||
<!--<![endif]--> | ||
<!--[if gte IE 6]>--> | ||
<p> | ||
Either scripts and active content are not permitted to run or Adobe Flash Player version | ||
10.2.0 or greater is not installed. | ||
</p> | ||
<!--<![endif]--> | ||
<a href="http://www.adobe.com/go/getflashplayer"> | ||
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> | ||
</a> | ||
<!--[if !IE]>--> | ||
</object> | ||
<!--<![endif]--> | ||
</object> | ||
</noscript> | ||
</body> | ||
</html> |
Binary file not shown.
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,263 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | ||
<html> | ||
|
||
<head> | ||
<title>Cytoscape Web Tool</title> | ||
|
||
<!-- JSON support for IE (needed to use JS API) --> | ||
<script type="text/javascript" src="cytoscapeweb/js/min/json2.min.js"></script> | ||
|
||
<!-- Flash embedding utility (needed to embed Cytoscape Web) --> | ||
<script type="text/javascript" src="cytoscapeweb/js/min/AC_OETags.min.js"></script> | ||
|
||
<!-- Cytoscape Web JS API (needed to reference org.cytoscapeweb.Visualization) --> | ||
<script type="text/javascript" src="cytoscapeweb/js/min/cytoscapeweb.min.js"></script> | ||
<script type="text/javascript" src="Dictionary.js"></script> | ||
|
||
<script type="text/javascript"> | ||
var weave = opener.weave; | ||
var vis; | ||
var _network = null; | ||
var _node_type = null; | ||
var _edge_type = null; | ||
var _data_schema = null; | ||
var _subset = null; | ||
var _raw_records = null; | ||
|
||
|
||
function key_to_id(qkey) | ||
{ | ||
return JSON.stringify([qkey.keyType, qkey.localName]); | ||
} | ||
function select(qkeys) { | ||
var element_ids = [].concat(qkeys.map(key_to_id)); | ||
|
||
disable_listeners(); | ||
vis.deselect(); | ||
vis.select(null, element_ids); | ||
enable_listeners(); | ||
return; | ||
} | ||
function probe(qkeys) { | ||
var element_ids = [].concat(qkeys.map(key_to_id)); | ||
|
||
var bypass = {nodes: {}, edges: {}}; | ||
|
||
var len = element_ids.length; | ||
for (var idx = 0; idx < len; idx++) | ||
{ | ||
bypass.nodes[element_ids[idx]] = {color: "#d9dafe", size: 48}; | ||
bypass.edges[element_ids[idx]] = {color: "#d9dafe", width: 10}; | ||
} | ||
|
||
vis.visualStyleBypass(bypass); | ||
} | ||
function subset(qkeys) { | ||
var element_ids = [].concat(qkeys.map(key_to_id)); | ||
_subset = element_ids; | ||
|
||
vis.filter("nodes", element_ids); | ||
vis.filter("edges", element_ids); | ||
vis.zoomToFit(); | ||
return; | ||
} | ||
|
||
function select_handler(evt) { | ||
var elements = vis.selected(); | ||
var length = elements.length; | ||
var idx; | ||
var key_list = new opener.Array; | ||
for (idx = 0; idx < length; idx++) | ||
{ | ||
var data = elements[idx].data; | ||
var qualkey = {localName: data.localName, keyType: data.keyType}; | ||
key_list.push(qualkey); | ||
} | ||
var path = new opener.Array; | ||
path.push('defaultSelectionKeySet'); | ||
window.weave.evaluateExpression(path, 'replaceKeys(keys)', {keys: key_list}); | ||
return; | ||
} | ||
function probe_handler(evt) { | ||
var element = evt.target; | ||
var qualkey = {localName: element.data.localName, keyType: element.data.keyType}; | ||
var key_list = new opener.Array; | ||
key_list.push(qualkey); | ||
var path = new opener.Array; | ||
path.push('defaultProbeKeySet'); | ||
window.weave.evaluateExpression(path, 'replaceKeys(keys)', {keys: key_list}); | ||
} | ||
function unprobe_handler(evt) { | ||
var element = evt.target; | ||
|
||
var path = new opener.Array; | ||
path.push('defaultProbeKeySet'); | ||
var key_list = new opener.Array; | ||
window.weave.evaluateExpression(path, 'replaceKeys(keys)', {keys: key_list}); | ||
} | ||
function ready_handler() { | ||
console.log("Ready handler filed."); | ||
var style = { | ||
nodes: { | ||
selectionGlowColor: "#ff0000", | ||
selectionGlowStrength: 10, | ||
selectionGlowBlur: 16 | ||
}, | ||
edges: { | ||
selectionGlowColor: "#ff0000", | ||
selectionGlowStrength: 10, | ||
selectionGlowBlur: 16 | ||
} | ||
}; | ||
/* | ||
var path = new opener.Array; | ||
path.push(window.name); | ||
weave.evaluateExpression(path, 'cytoscapeReady()'); | ||
*/ | ||
vis.visualStyle(style); | ||
return; | ||
} | ||
|
||
|
||
|
||
// Converts the columns sent by Weave into a network. | ||
// Keytypes must contain 'node' and 'edge' elements | ||
|
||
function load_data(records, element_to_key_types, data_options) | ||
{ | ||
_raw_records = records; | ||
var _tmpnetwork = {nodes: [], edges: []}; | ||
|
||
_node_type = element_to_key_types["nodes"]; | ||
_edge_type = element_to_key_types["edges"]; | ||
|
||
var len = records.length; | ||
for (var idx = 0; idx < len; idx++) | ||
{ | ||
var element = records[idx]; | ||
element.id = JSON.stringify([element.keyType, element.localName]) | ||
if (element.keyType == _edge_type) | ||
{ | ||
// We need to change the source and target fields to match | ||
// The ids instead of the localNames. | ||
element.source = JSON.stringify([_node_type, element.source]); | ||
element.target = JSON.stringify([_node_type, element.target]); | ||
|
||
_tmpnetwork.edges.push(element); | ||
} | ||
else if (element.keyType == _node_type) | ||
{ | ||
if (element["parent"]) | ||
{ | ||
element.parent = JSON.stringify([_node_type, element.parent]); | ||
} | ||
if (element["parent"] == "") | ||
{ | ||
delete element.parent; | ||
} | ||
_tmpnetwork.nodes.push(element); | ||
// HACKS | ||
if (element.localName.indexOf("locator") == 0) | ||
{ | ||
console.log("Setting element to RECTANGLE shape.") | ||
element.shape = "RECTANGLE" | ||
} | ||
if (element.localName.indexOf("content") == 0) | ||
{ | ||
element.shape = "RECTANGLE" | ||
} | ||
} | ||
} | ||
_network = {}; | ||
_network.data = _tmpnetwork; | ||
} | ||
|
||
/* Builds a basic passthrough schema */ | ||
function build_style_from_schema(schema) { | ||
|
||
var style = {nodes: {}, edges: {}}; | ||
for (var prop_i in schema.nodes) | ||
{ | ||
var prop = schema.nodes[prop_i].name; | ||
if (prop == "keyType" || prop == "localName") | ||
continue; | ||
style.nodes[prop] = { passthroughMapper: {attrName: prop} }; | ||
} | ||
for (var prop_i in schema.edges) | ||
{ | ||
var prop = schema.edges[prop_i].name; | ||
if (prop == "keyType" || prop == "localName") | ||
continue; | ||
style.edges[prop] = { passthroughMapper: {attrName: prop} }; | ||
} | ||
return style; | ||
} | ||
|
||
function launch(parameters) { | ||
console.log("Launch called."); | ||
parameters = JSON.parse(JSON.stringify(parameters)); | ||
parameters.network = _network; | ||
_network.dataSchema = parameters.dataSchema; | ||
parameters.visualStyle = build_style_from_schema(_network.dataSchema); | ||
delete parameters.dataSchema; | ||
|
||
window.vis.draw(parameters); | ||
enable_listeners(); | ||
} | ||
|
||
function enable_listeners() { | ||
vis.addListener("select", select_handler); | ||
vis.addListener("deselect", select_handler); | ||
vis.addListener("mouseover", "nodes", probe_handler); | ||
vis.addListener("mouseover", "edges", probe_handler); | ||
vis.addListener("mouseout", "nodes", unprobe_handler); | ||
vis.addListener("mouseout", "edges", unprobe_handler); | ||
} | ||
function disable_listeners() { | ||
vis.removeListener("select", select_handler); | ||
vis.removeListener("deselect", select_handler); | ||
vis.removeListener("mouseover", "nodes", probe_handler); | ||
vis.removeListener("mouseover", "edges", probe_handler); | ||
vis.removeListener("mouseout", "nodes", unprobe_handler); | ||
vis.removeListener("mouseout", "edges", unprobe_handler); | ||
} | ||
|
||
window.onload=function() { | ||
// id of Cytoscape Web container div | ||
var div_id = "cytoscapeweb"; | ||
// you could also use other formats (e.g. GraphML) or grab the network data via AJAX | ||
// initialization options | ||
var options = { | ||
// where you have the Cytoscape Web SWF | ||
swfPath: "cytoscapeweb/swf/CytoscapeWeb", | ||
// where you have the Flash installer SWF | ||
flashInstallerPath: "cytoscapeweb/swf/playerProductInstall" | ||
}; | ||
|
||
// init | ||
vis = new org.cytoscapeweb.Visualization(div_id, options); | ||
vis.ready(ready_handler); | ||
vis.draw(); | ||
|
||
var path = new opener.Array; | ||
path.push(window.name); | ||
weave.evaluateExpression(path, 'cytoscapeReady()'); | ||
|
||
enable_listeners(); | ||
}; | ||
</script> | ||
|
||
<style> | ||
/* The Cytoscape Web container must have its dimensions set. */ | ||
html, body { height: 100%; width: 100%; padding: 0; margin: 0; } | ||
#cytoscapeweb { width: 100%; height: 100%; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="cytoscapeweb"> | ||
Cytoscape Web will replace the contents of this div with your graph. | ||
</div> | ||
</body> | ||
|
||
</html> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.