Permalink
Browse files

Added IBIS tool with resources and related icons

(the icons are currently availabe via WebContent instead of as resources
like in test platform; need better tool for importing a lot of files or
managing them).
  • Loading branch information...
1 parent d660988 commit c98a93ae996fcafd7908a664124b46d18f516265 @pdfernhout committed Feb 23, 2015
Showing with 144 additions and 0 deletions.
  1. +2 −0 WebContent/CompendiumIcons/README_CompendiumIcons.txt
  2. BIN WebContent/CompendiumIcons/argument.png
  3. BIN WebContent/CompendiumIcons/decision-old.png
  4. BIN WebContent/CompendiumIcons/decision.png
  5. BIN WebContent/CompendiumIcons/issue.png
  6. BIN WebContent/CompendiumIcons/list.png
  7. BIN WebContent/CompendiumIcons/map.png
  8. BIN WebContent/CompendiumIcons/minus.png
  9. BIN WebContent/CompendiumIcons/note.png
  10. BIN WebContent/CompendiumIcons/plus.png
  11. BIN WebContent/CompendiumIcons/position.png
  12. BIN WebContent/CompendiumIcons/position2.png
  13. BIN WebContent/CompendiumIcons/reference.png
  14. BIN WebContent/CompendiumIcons/trashbin.png
  15. BIN WebContent/CompendiumIcons/trashbinfull.png
  16. BIN WebContent/CrystalClearIcons/Delete.png
  17. BIN WebContent/CrystalClearIcons/Edit.png
  18. BIN WebContent/CrystalClearIcons/Import.png
  19. BIN WebContent/CrystalClearIcons/LeftArrow.png
  20. BIN WebContent/CrystalClearIcons/Load.png
  21. +2 −0 WebContent/CrystalClearIcons/README_CrystalClear.txt
  22. BIN WebContent/CrystalClearIcons/Save.png
  23. +59 −0 ...er-data/resources/25/40/2540f674db39a811e3792b5782edbbd75df9dc4c595533cb58c5c1f84323ab2c_1605.pce
  24. +9 −0 ...r-data/resources/39/1f/391fb2702cd5d3cc59bbbb9e8d695250c945f31ccca65e4993baa63eab95ab37_29546.pce
  25. +14 −0 server-data/resources/4f/6e/4f6e1d3db47c062f9e63f87c76afab0f1349ad383fdd1eed7f758daf525e0598_367.pce
  26. +9 −0 ...er-data/resources/8e/cc/8eccc278f897ca6eb0a8925153bbc94b3ea41fb0f189bc6218a9604de48efcc3_1456.pce
  27. +9 −0 ...r-data/resources/a7/5e/a75ed0b51311554ddbba6f0df343a00f3f11fa8f926097302286daa74fc09faf_29531.pce
  28. +9 −0 ...er-data/resources/bc/ee/bcee19b753a12927d9a9238f2c4926133056695ce7e6f7fad5cc5c5f1ee735e0_2135.pce
  29. +22 −0 server-data/resources/cb/3b/cb3bc42d3062c62821af31f6d683c0e95239632fc136b0b8146228c9bd475caa_556.pce
  30. +9 −0 ...er-data/resources/d8/9f/d89fcfae9b18d88530e29761f0218ba1368487e1b1771cbac3b3fb18e40755b4_5581.pce
@@ -0,0 +1,2 @@
+These icons are from the Compendium project and are goverend by its LGPLv3 license.
+http://compendiuminstitute.net/download/download.htm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,2 @@
+These icons are from the Crystal Clear icon set and are govered by its LGPL license.
+http://commons.wikimedia.org/wiki/Crystal_Clear
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,59 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "IBIS_test1",
+ "contentType": "text/IBISDiagram",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:29:16.549Z",
+ "content": {
+ "surfaceWidthInPixels": 800,
+ "surfaceHeightInPixels": 600,
+ "nodes": [
+ {
+ "uuid": "d45d3479-6c94-403b-81f3-cdc92aaef14d",
+ "type": "issue",
+ "x": 21,
+ "y": 149,
+ "text": "Which decision making tool to use?"
+ },
+ {
+ "uuid": "68524f3f-f668-4b55-801b-c80ae16dd0f5",
+ "type": "position",
+ "x": 196,
+ "y": 64,
+ "text": "Paper and Pencil"
+ },
+ {
+ "uuid": "eea24a9c-449b-4760-80f8-60c8c1a5cdce",
+ "type": "position",
+ "x": 157,
+ "y": 231,
+ "text": "Spreadsheet"
+ },
+ {
+ "uuid": "f9df79a9-3d02-4b5d-8608-345d530d0faa",
+ "type": "position",
+ "x": 173,
+ "y": 340,
+ "text": "IBIS"
+ }
+ ],
+ "links": [
+ {
+ "uuid": "17e5b243-e646-40c1-8011-f855c6eff826",
+ "from": "68524f3f-f668-4b55-801b-c80ae16dd0f5",
+ "to": "d45d3479-6c94-403b-81f3-cdc92aaef14d"
+ },
+ {
+ "uuid": "a5eedbbf-fe0e-4418-8f2f-556297f6fa2d",
+ "from": "eea24a9c-449b-4760-80f8-60c8c1a5cdce",
+ "to": "d45d3479-6c94-403b-81f3-cdc92aaef14d"
+ },
+ {
+ "uuid": "feb75027-fd95-4a7a-840d-14622d0b1dae",
+ "from": "f9df79a9-3d02-4b5d-8608-345d530d0faa",
+ "to": "d45d3479-6c94-403b-81f3-cdc92aaef14d"
+ }
+ ]
+ }
+}
@@ -0,0 +1,14 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "IBIS_test1",
+ "contentType": "text/IBISDiagram",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:21:34.840Z",
+ "content": {
+ "surfaceWidthInPixels": 800,
+ "surfaceHeightInPixels": 600,
+ "nodes": [],
+ "links": []
+ }
+}
@@ -0,0 +1,9 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "index.html",
+ "contentType": "text/html",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:20:07.341Z",
+ "content": "<html>\n<head>\n<title>Twirlip index</title>\n</head>\n<body>\n<h1><b>Twirlip Information Organizer</b></h1>\n<hr>\nTo get a list of all pages, click <a href=\"list\">here</a>.<br>\nTo edit what goes on this summary index page, click <a href=\"editor#index.html\">here</a>.\n<br><br>\nUse this editor to create new pages or edit existing ones: <a href=\"editor\">more advanced editor</a>.<br>\nTip: You can add \"editor#\" in front of the page part of any URL to edit it.\n<br><br>\nIf that editor is broken, try this bare bones emergency editor: <a href=\"simple_editor_for_content.html\">emergency editor</a>.\n<br><br>\nYou can try an IBIS application: <a href=\"IBIS#IBIS_test1\">Issue Based Information System (IBIS)</a>.\n<br><br>\nHere are some example test files to get you started to view or edit:<br>\n<a href=\"editor#test\">[EDIT]</a> <a href=\"test\">test</a><br>\n<a href=\"editor#test2\">[EDIT]</a> <a href=\"test2\">test2</a><br>\n<a href=\"editor#test3\">[EDIT]</a> <a href=\"test3\">test3</a><br>\n<br><br>\n<br>\nHere is a test image (the Earth as seen from Apollo 17):<br>\n<img src=\"The_Earth_seen_from_Apollo_17.jpg\" alt=\"The Earth seen from Apollo 17\">\n</body>\n</html>\n"
+}
@@ -0,0 +1,9 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "IBIS",
+ "contentType": "text/html",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:14:11.552Z",
+ "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"> \n<html>\n\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>IBIS for Twirlip Information Organizer</title>\n<script src=\"//ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n<link rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dojo/resources/dojo.css\">\n<link rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dijit/themes/dijit.css\">\n<link rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dijit/themes/claro/claro.css\">\n<link rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dojox/layout/resources/ResizeHandle.css\" />\n<link rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dojox/widget/Toaster/Toaster.css\" >\n\n<script>\n var dojoConfig;\n (function(){\n var baseUrl = \"/lib/\";\n dojoConfig = {\n async: true,\n parseOnLoad: false,\n packages: [\n { name: \"js\", location: location.pathname.replace(/\\/[^/]+$/, '') + \"/js\"},\n { name: \"IBIS\", location: location.pathname.replace(/\\/[^/]+$/, '') + \"/IBIS\"},\n { name: \"lib\", location: baseUrl}\n ]\n };\n }());\n</script>\n\n<script src=\"//ajax.googleapis.com/ajax/libs/dojo/1.10.2/dojo/dojo.js\"></script>\n\n</head>\n\n<body class=\"claro\">\n <noscript>Please enable JavaScript to use Twirlip.</noscript>\n <div id=\"startup\" style=\"display: none\"><b>Starting up Twirlip; please wait...</b></div>\n <script>console.log(\"started loading...\"); document.getElementById(\"startup\").style.display=\"block\";</script>\n<script src=\"IBIS/ibis.js\"></script>\n</body>\n</html>"
+}
@@ -0,0 +1,22 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "IBIS_test1",
+ "contentType": "text/IBISDiagram",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:22:01.489Z",
+ "content": {
+ "surfaceWidthInPixels": 895,
+ "surfaceHeightInPixels": 622,
+ "nodes": [
+ {
+ "uuid": "d45d3479-6c94-403b-81f3-cdc92aaef14d",
+ "type": "issue",
+ "x": 47,
+ "y": 68,
+ "text": "Which decision making tool to use?"
+ }
+ ],
+ "links": []
+ }
+}
@@ -0,0 +1,9 @@
+{
+ "__type": "org.pointrel.pointrel20141201.PointrelContentEnvelope",
+ "__envelopeVersion": "pointrel20141201-0.0.3",
+ "id": "IBIS/widgetSupport.js",
+ "contentType": "application/javascript",
+ "committer": "tester",
+ "timestamp": "2015-02-23T17:23:06.051Z",
+ "content": "\"use strict\";\n\ndefine([\n \"dojo/_base/array\",\n \"dojox/mvc/at\",\n \"dojo/_base/lang\",\n \"dijit/form/Button\",\n \"dijit/ConfirmDialog\",\n \"dijit/layout/ContentPane\",\n \"dijit/Dialog\",\n \"dijit/layout/LayoutContainer\",\n \"dojo/Stateful\",\n \"dijit/form/Textarea\"\n], function(\n array,\n at,\n lang,\n Button,\n ConfirmDialog,\n ContentPane,\n Dialog,\n LayoutContainer,\n Stateful,\n Textarea\n){\n function translate(id) {\n // No actual translation done for now in this version\n return id;\n }\n \n // TODO: Translate: Change to taking a translate ID\n // TODO: Buttons don't show up if window to narrow for dialog\n function confirm(message, okCallback) {\n var dialog = new ConfirmDialog({\n title: \"Confirm\",\n content: message,\n style: \"width: 300px\",\n onExecute: okCallback,\n // TODO: onCancel: cancelCallback\n });\n dialog.show();\n }\n \n /*\n var dialogConfiguration = {\n dialogOpenButtonID: \"???\",\n dialogContentPaneID: \"???\",\n dialogTitleID: \"???\",\n dialogStyle: \"height: 500px\",\n dialogConstructionFunction: ???\n };\n */\n function addButtonThatLaunchesDialog(contentPane, model, id, options, dialogConfiguration) {\n // if (!callback) callback = lang.partial(domain.buttonClicked, contentPane, model, id, questionOptions);\n var callback = function() {\n openDialog(model, id, options, dialogConfiguration);\n };\n \n var button = new Button({\n label: translate(dialogConfiguration.dialogOpenButtonID),\n type: \"button\",\n onClick: callback\n });\n\n button.placeAt(contentPane);\n \n var wrap = new ContentPane({\n content: \"<br>\"\n });\n wrap.placeAt(contentPane);\n \n return button;\n }\n \n function openDialog(model, id, options, dialogConfiguration) { \n console.log(\"openDialog model, id, options\", model, id, options, JSON.stringify(dialogConfiguration));\n \n var dialog;\n var dialogContentPane = new ContentPane({id: dialogConfiguration.dialogContentPaneID});\n \n function hideDialogMethod(status) {\n dialog.hide();\n }\n \n dialogConfiguration.dialogConstructionFunction(dialogContentPane, model, id, options, hideDialogMethod, dialogConfiguration);\n \n dialog = new Dialog({\n // TODO: Translate\n title: translate(dialogConfiguration.dialogTitleID),\n style: dialogConfiguration.dialogStyle,\n content: dialogContentPane\n });\n \n // This will free the dialog when we are done with it whether from OK or Cancel to avoid a memory leak\n dialog.connect(dialog, \"onHide\", function(e) {\n console.log(\"destroying dialog\");\n dialog.destroyRecursive(); \n });\n \n dialog.startup(); \n dialog.show();\n }\n \n // dialogContentPaneID \"textEditorDialog\" dialogTitleID \"title_textEditorDialog\"\n function openTextEditorDialog(text, dialogContentPaneID, dialogTitleID, dialogOKButtonID, dialogOKCallback) {\n \n var model = new Stateful({text: text});\n \n var dialogConfiguration = {\n dialogContentPaneID: dialogContentPaneID,\n dialogTitleID: dialogTitleID,\n dialogStyle: \"width: 600px; height: 800px\",\n dialogConstructionFunction: build_textEditorDialogContent,\n dialogOKButtonID: dialogOKButtonID,\n dialogOKCallback: dialogOKCallback\n };\n \n openDialog(model, dialogContentPaneID, {}, dialogConfiguration);\n }\n \n function build_textEditorDialogContent(dialogContentPane, model, id, options, hideDialogMethod, dialogConfiguration) {\n // Experiment; lots of tries!!! http://jsfiddle.net/u3qcbxy4/37/\n \n var layout = new LayoutContainer({\n });\n \n // Maybe SimpleTextarea?\n var sourceTextarea = new Textarea({\n name: 'text',\n value: at(model, \"text\"),\n placeHolder: dialogConfiguration.placeHolder, // \"[]\",\n region: 'center', \n style: \"overflow: auto; height: 90%; max-height: 90%; width: 98%; max-width: 98%\"\n });\n \n var okButton = new Button({\n label: translate(dialogConfiguration.dialogOKButtonID),\n type: \"button\",\n onClick: function() {dialogConfiguration.dialogOKCallback(model.get(\"text\"), hideDialogMethod, id, options, dialogConfiguration);},\n region: 'bottom'\n });\n \n layout.addChild(sourceTextarea);\n layout.addChild(okButton);\n \n layout.placeAt(dialogContentPane);\n }\n\n return {\n \"confirm\": confirm,\n \"addButtonThatLaunchesDialog\": addButtonThatLaunchesDialog,\n \"openDialog\": openDialog,\n \"openTextEditorDialog\": openTextEditorDialog\n };\n});"
+}

0 comments on commit c98a93a

Please sign in to comment.