Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor directory structure, employ dojo build script

  • Loading branch information...
commit ebf0c9db4d256ed77a733dec2dd492f8e45847d2 1 parent 906a981
Maximilian Hils authored
Showing with 5,777 additions and 1,390 deletions.
  1. +1 −2  .settings/com.eclipsesource.jshint.ui.prefs
  2. +19 −0 build/build.xml
  3. +1 −0  build/webignore.txt
  4. +9 −13 gui/index.html
  5. 0  gui/{ → js/HoneyProxy}/css/CantoraOne-Regular.ttf
  6. 0  gui/{ → js/HoneyProxy}/css/CantoraOne-Regular.woff
  7. 0  gui/{ → js/HoneyProxy}/css/ReportEditor.less
  8. 0  gui/{ → js/HoneyProxy}/css/ReportOutput.less
  9. 0  gui/{ → js/HoneyProxy}/css/details.less
  10. 0  gui/{ → js/HoneyProxy}/css/helper.less
  11. 0  gui/{ → js/HoneyProxy}/css/popout.css
  12. 0  gui/{ → js/HoneyProxy}/css/popout.less
  13. 0  gui/{ → js/HoneyProxy}/css/prefixer.less
  14. 0  gui/{ → js/HoneyProxy}/css/preview.less
  15. 0  gui/{ → js/HoneyProxy}/css/raw.less
  16. 0  gui/{ → js/HoneyProxy}/css/search.less
  17. 0  gui/{ → js/HoneyProxy}/css/style.css
  18. 0  gui/{ → js/HoneyProxy}/css/style.less
  19. 0  gui/{ → js/HoneyProxy}/css/traffictable.less
  20. +6 −0 gui/js/HoneyProxy/honeyproxy.css
  21. 0  gui/{ → js/HoneyProxy}/images/document-save.png
  22. 0  gui/{ → js/HoneyProxy}/images/header.jpg
  23. 0  gui/{ → js/HoneyProxy}/images/logo.png
  24. 0  gui/{ → js/HoneyProxy}/images/resourceCSSIcon.png
  25. 0  gui/{ → js/HoneyProxy}/images/resourceDocumentIcon.png
  26. 0  gui/{ → js/HoneyProxy}/images/resourceImageIcon.png
  27. 0  gui/{ → js/HoneyProxy}/images/resourceJSIcon.png
  28. 0  gui/{ → js/HoneyProxy}/images/resourcePlainIcon.png
  29. 0  gui/{ → js/HoneyProxy}/images/search-similar.png
  30. 0  gui/{ → js/HoneyProxy}/images/window-new.png
  31. +5 −12 gui/js/HoneyProxy/main.js
  32. +9 −4 gui/js/HoneyProxy/package.js
  33. +2 −4 gui/js/HoneyProxy/views/ReportEditor.js
  34. +1 −1  gui/js/HoneyProxy/views/ReportPane.js
  35. +1 −1  gui/js/HoneyProxy/views/_DetailViewMixin.js
  36. +1 −1  gui/js/HoneyProxy/views/templates/HeaderPane.ejs
  37. +49 −0 gui/js/dojoConfig.js
  38. +0 −18 gui/js/lib/codemirror/all.js
  39. +15 −0 gui/js/lib/codemirror/build.py
  40. +5,578 −0 gui/js/lib/codemirror/codemirror-combined.js
  41. +1 −0  gui/js/lib/codemirror/codemirror.css
  42. +6 −0 gui/js/lib/codemirror/main.js
  43. +20 −0 gui/js/lib/codemirror/package.js
  44. +6 −0 gui/js/lib/codemirror/package.json
  45. +19 −0 gui/js/lib/codemirror/util/package.js
  46. 0  gui/js/lib/{ → highlight}/highlight.css
  47. 0  gui/js/lib/{ → highlight}/highlight.js
  48. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  49. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  50. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  51. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  52. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  53. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  54. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  55. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  56. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png
  57. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png
  58. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png
  59. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png
  60. BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png
  61. +0 −304 gui/js/lib/jquery-ui/css/smoothness/jquery-ui.css
  62. +0 −13 gui/js/lib/jquery-ui/jquery-ui.min.js
  63. +0 −213 gui/js/lib/jquery.splitter.js
  64. 0  gui/js/lib/{jquery-1.8.3.js → jquery/jquery.js}
  65. 0  gui/js/lib/{ → legacy}/backbone.js
  66. 0  gui/js/lib/{ → legacy}/backbone.marionette.js
  67. 0  gui/js/lib/{ → legacy}/modernizr.js
  68. +10 −0 gui/js/lib/legacy/package.js
  69. +6 −0 gui/js/lib/legacy/package.json
  70. 0  gui/js/lib/{ → legacy}/underscore.es5.js
  71. 0  gui/js/lib/{ → legacy}/underscore.js
  72. 0  gui/js/lib/{ → lodash}/_lodash.js
  73. +1 −1  gui/js/lib/{ → lodash}/lodash.js
  74. +0 −775 gui/js/lib/prettyprint.js
  75. +1 −1  gui/js/lib/util
  76. +10 −27 gui/js/release.profile.js
3  .settings/com.eclipsesource.jshint.ui.prefs
View
@@ -1,6 +1,5 @@
eclipse.preferences.version=1
-excluded=//*.ejs
globals=$\: false, Backbone\: false, require\: false, define\: false, console\: true, window\: false, document\: false, localStorage\: false, WebSocket\: false
-included=gui/js/HoneyProxy//*
+included=gui/js/HoneyProxy//*.js
options=es5\: true, laxbreak\:true, latedef\: true, newcap\: true, noarg\: true, noempty\:true, nonew\:true, undef\:true, unused\: true
projectSpecificOptions=true
19 build/build.xml
View
@@ -28,6 +28,25 @@
</copy>
</target>
+ <target name="web" depends="clean">
+ <mkdir dir="${dist}"/>
+ <copy todir="${dist}">
+ <fileset dir=".">
+ <excludesfile name=".gitignore"/>
+ <excludesfile name="build/ignore.txt"/>
+ <excludesfile name="build/webignore.txt"/>
+ </fileset>
+ </copy>
+ <exec dir="gui/js/lib/util/buildscripts" executable="cmd">
+ <arg value="/c"/>
+ <arg value="build.bat"/>
+ <arg value="--dojoConfig"/>
+ <arg value="../../../dojoConfig.js"/>
+ <arg value="--profile"/>
+ <arg value="../../../release.profile.js"/>
+ </exec>
+ </target>
+
<target name="pack" depends="build" description="put it into a zip file! :)">
<zip destfile="${zipfile}"
basedir="${dist}"
1  build/webignore.txt
View
@@ -0,0 +1 @@
+gui/js/
22 gui/index.html
View
@@ -5,12 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>HoneyProxy</title>
- <link rel="stylesheet" href="./js/lib/highlight.css">
- <link rel="stylesheet" href="./js/lib/codemirror/codemirror.css">
- <link rel="stylesheet" href="./js/lib/codemirror/util/simple-hint.css">
- <link rel="stylesheet" href="./js/lib/dijit/themes/claro/claro.css" media="screen">
- <link rel="stylesheet" href="./css/style.css">
-
+ <link rel="stylesheet" href="./js/HoneyProxy/honeyproxy.css">
</head>
<body class="claro">
<div id="appLayout">
@@ -29,13 +24,14 @@
</ul>
</div>
-<script src="./js/lib/jquery-1.8.3.js"></script>
-<script src="./js/lib/underscore.js"></script> <!-- underscore is not referenced in the code anymore (lodash is). Remove when removing backbone dependency -->
-<script src="./js/lib/underscore.es5.js"></script>
-<script src="./js/lib/backbone.js"></script>
-<script src="./js/lib/backbone.marionette.js"></script>
-<script src="./js/lib/modernizr.js"></script> <!-- AMDize with modernizr 3.0 -->
-<script src="./js/lib/dojo/dojo.js" data-dojo-config="async: true"></script>
+<script src="./js/lib/jquery/jquery.js"></script> <!-- needed for underscore only -->
+<script src="./js/lib/legacy/underscore.js"></script> <!-- needed for backbone only -->
+<script src="./js/lib/legacy/underscore.es5.js"></script> <!-- needed for backbone only -->
+<script src="./js/lib/legacy/backbone.js"></script>
+<script src="./js/lib/legacy/backbone.marionette.js"></script>
+<script src="./js/lib/legacy/modernizr.js"></script> <!-- AMDize with modernizr 3.0 -->
+<script src="./js/dojoConfig.js"></script>
+<script src="./js/lib/dojo/dojo.js"></script>
<script src="./js/HoneyProxy/main.js"></script>
0  gui/css/CantoraOne-Regular.ttf → gui/js/HoneyProxy/css/CantoraOne-Regular.ttf
View
File renamed without changes
0  gui/css/CantoraOne-Regular.woff → gui/js/HoneyProxy/css/CantoraOne-Regular.woff
View
File renamed without changes
0  gui/css/ReportEditor.less → gui/js/HoneyProxy/css/ReportEditor.less
View
File renamed without changes
0  gui/css/ReportOutput.less → gui/js/HoneyProxy/css/ReportOutput.less
View
File renamed without changes
0  gui/css/details.less → gui/js/HoneyProxy/css/details.less
View
File renamed without changes
0  gui/css/helper.less → gui/js/HoneyProxy/css/helper.less
View
File renamed without changes
0  gui/css/popout.css → gui/js/HoneyProxy/css/popout.css
View
File renamed without changes
0  gui/css/popout.less → gui/js/HoneyProxy/css/popout.less
View
File renamed without changes
0  gui/css/prefixer.less → gui/js/HoneyProxy/css/prefixer.less
View
File renamed without changes
0  gui/css/preview.less → gui/js/HoneyProxy/css/preview.less
View
File renamed without changes
0  gui/css/raw.less → gui/js/HoneyProxy/css/raw.less
View
File renamed without changes
0  gui/css/search.less → gui/js/HoneyProxy/css/search.less
View
File renamed without changes
0  gui/css/style.css → gui/js/HoneyProxy/css/style.css
View
File renamed without changes
0  gui/css/style.less → gui/js/HoneyProxy/css/style.less
View
File renamed without changes
0  gui/css/traffictable.less → gui/js/HoneyProxy/css/traffictable.less
View
File renamed without changes
6 gui/js/HoneyProxy/honeyproxy.css
View
@@ -0,0 +1,6 @@
+@import url("../lib/highlight/highlight.css");
+@import url("../lib/codemirror/codemirror.css");
+@import url("../lib/codemirror/util/simple-hint.css");
+@import url("../lib/dijit/themes/claro/claro.css");
+@import url("./css/style.css");
+/* Imports are evil, but the buildscript combines it all */
0  gui/images/document-save.png → gui/js/HoneyProxy/images/document-save.png
View
File renamed without changes
0  gui/images/header.jpg → gui/js/HoneyProxy/images/header.jpg
View
File renamed without changes
0  gui/images/logo.png → gui/js/HoneyProxy/images/logo.png
View
File renamed without changes
0  gui/images/resourceCSSIcon.png → gui/js/HoneyProxy/images/resourceCSSIcon.png
View
File renamed without changes
0  gui/images/resourceDocumentIcon.png → gui/js/HoneyProxy/images/resourceDocumentIcon.png
View
File renamed without changes
0  gui/images/resourceImageIcon.png → gui/js/HoneyProxy/images/resourceImageIcon.png
View
File renamed without changes
0  gui/images/resourceJSIcon.png → gui/js/HoneyProxy/images/resourceJSIcon.png
View
File renamed without changes
0  gui/images/resourcePlainIcon.png → gui/js/HoneyProxy/images/resourcePlainIcon.png
View
File renamed without changes
0  gui/images/search-similar.png → gui/js/HoneyProxy/images/search-similar.png
View
File renamed without changes
0  gui/images/window-new.png → gui/js/HoneyProxy/images/window-new.png
View
File renamed without changes
17 gui/js/HoneyProxy/main.js
View
@@ -1,17 +1,10 @@
-require({
- packages: [ {
- name: "HoneyProxy",
- location: "../../HoneyProxy",
- tlmSiblingOfDojo: false
- }, {
- name: "ReportScripts",
- location: "/api/fs/report_scripts",
- tlmSiblingOfDojo: false
- } ]
-},
+if(define && define.amd) //for the builder
+ define.amd.jQuery = true;
+require(
["dojo/when",
"dojo/on",
"dojo/topic",
+ "jquery",
"HoneyProxy/MainLayout",
"HoneyProxy/websocket",
"HoneyProxy/traffic",
@@ -21,7 +14,7 @@ require({
"HoneyProxy/tutorial",
"HoneyProxy/search",
"HoneyProxy/popOut"
- ], function(when,on,topic,MainLayout,websocket,traffic,versionCheck, sampleFlow) {
+ ], function(when,on,topic,jquery,MainLayout,websocket,traffic,versionCheck, sampleFlow) {
//Debug
window.HoneyProxy = {
13 gui/js/HoneyProxy/package.js
View
@@ -3,12 +3,16 @@ var profile = (function() {
var copyOnlyFiles = {"package.js": true, "package.json" : true};
+ var ignore = function(filename,mid){
+ return (/\.less$/).test(filename);
+ };
+
var copyOnly = function(filename){
return (filename in copyOnlyFiles);
};
var amd = function(filename, mid) {
- console.log("Filename: " + filename, "Mid: " + mid);
+ //console.log("Filename: " + filename, "Mid: " + mid);
if(copyOnly(filename))
return false;
return (/\.js$/).test(filename);
@@ -22,9 +26,10 @@ var profile = (function() {
},
copyOnly: copyOnly,
- amd: amd
- },
+ amd: amd,
+ ignore: ignore
+ }
- trees: [ [ ".", ".", /(\/\.)|(~$)/ ] ]
+ //trees: [ [ ".", ".", /(\/\.)|(~$)/ ] ]
};
})();
6 gui/js/HoneyProxy/views/ReportEditor.js
View
@@ -5,7 +5,7 @@ define([ "lodash",
"dojo/dom-construct",
"dojo/on",
"dojo/request",
- "codemirror/all",
+ "codemirror",
"dijit/Toolbar",
"dijit/form/Button",
"../traffic",
@@ -14,7 +14,7 @@ define([ "lodash",
"../util/_DynamicTemplatedWidget",
"dijit/_WidgetsInTemplateMixin",
"dojo/text!./templates/ReportEditor.ejs" ], function(_, declare, array, Deferred, domConstruct, on, request,
- CodeMirrorPromise, Toolbar, Button, traffic, sampleFlow, requestAuthenticator, _DynamicTemplatedWidget, _WidgetsInTemplateMixin, template) {
+ CodeMirror, Toolbar, Button, traffic, sampleFlow, requestAuthenticator, _DynamicTemplatedWidget, _WidgetsInTemplateMixin, template) {
return declare([ _DynamicTemplatedWidget, _WidgetsInTemplateMixin ], {
templateString: template,
@@ -27,7 +27,6 @@ define([ "lodash",
var self = this;
- CodeMirrorPromise.then(function(CodeMirror) {
CodeMirror.commands.autocomplete = function(cm) {
CodeMirror.simpleHint(cm, CodeMirror.javascriptHint, {
completeSingle: false,
@@ -208,7 +207,6 @@ define([ "lodash",
load(this.options[this.selectedIndex].value);
});
load("=intro.js");
- });
this.startButton = new Button({
iconClass: "dijitIcon dijitIconFunction"
2  gui/js/HoneyProxy/views/ReportPane.js
View
@@ -76,7 +76,7 @@ define(["require",
//populate trafficPane
this.addChild(this.reportOutput);
this.addChild(this.reportEditor);
- },
+ }
});
2  gui/js/HoneyProxy/views/_DetailViewMixin.js
View
@@ -1,4 +1,4 @@
-define([ "dojo/_base/declare", "dojo/dom-construct", "dojo/on", "dijit/layout/ContentPane", "./DetailPane", ],
+define([ "dojo/_base/declare", "dojo/dom-construct", "dojo/on", "dijit/layout/ContentPane", "./DetailPane" ],
function(declare, domConstruct, on, ContentPane, DetailPane) {
return declare([], {
postCreate: function() {
2  gui/js/HoneyProxy/views/templates/HeaderPane.ejs
View
@@ -1,5 +1,5 @@
<div>
- <img src="./images/logo.png" width=64 height=64>
+ <img src="./js/HoneyProxy/images/logo.png" width=64 height=64>
<h3>HoneyProxy</h3>
<div class="dijitToolbar mainToolbar" data-dojo-attach-point="toolbarNode"></div>
</div>
49 gui/js/dojoConfig.js
View
@@ -0,0 +1,49 @@
+var dojoConfig = {
+ async: true,
+ basePath: ".",
+ baseUrl: "./js",
+ /*aliases: [
+ // [alias name, true name]
+ ["lodash", "lodash/main"],
+ // ["jquery", "jquery/jquery"],
+ ],*/
+ packages: [ {
+ name: "HoneyProxy",
+ location: "./HoneyProxy"
+ }, {
+ name: "ReportScripts",
+ location: "/api/fs/report_scripts"
+ }, {
+ name: "jquery",
+ main: "jquery",
+ location: "./lib/jquery",
+ destLocation:"./lib/jquery"
+ }, {
+ name: "highlight",
+ main: "highlight",
+ location: "./lib/highlight",
+ destLocation:"./lib/highlight"
+ }, {
+ name: "lodash",
+ main: "lodash",
+ location: "./lib/lodash",
+ destLocation:"./lib/lodash"
+ }, {
+ name: "codemirror",
+ location: "./lib/codemirror",
+ destLocation:"./lib/codemirror"
+ }, {
+ name: "dojo",
+ location: "./lib/dojo",
+ destLocation:"./lib/dojo"
+ }, {
+ name: "dijit",
+ location: "./lib/dijit",
+ destLocation:"./lib/dijit"
+ }, {
+ name: "legacy",
+ location: "./lib/legacy",
+ destLocation:"./lib/legacy"
+ }
+ ]
+};
18 gui/js/lib/codemirror/all.js
View
@@ -1,18 +0,0 @@
-/*
- * CodeMirror AMD wrapper. Returns a promise that gets fulfiled when codemirror and all plugins have been loaded.
- */
-define(["require","dojo/Deferred","./codemirror"],function(require,Deferred){
- var def = new Deferred();
- require(["./mode-javascript",
- "./util/continuecomment",
- "./util/formatting",
- "./util/simple-hint",
- "./util/javascript-hint",
- "./util/matchbrackets",
- "./util/searchcursor",
- "./util/match-highlighter"],
- function(){
- def.resolve(window.CodeMirror);
- });
- return def;
-});
15 gui/js/lib/codemirror/build.py
View
@@ -0,0 +1,15 @@
+files = ["codemirror.js",
+ "mode-javascript.js",
+ "util/continuecomment.js",
+ "util/formatting.js",
+ "util/simple-hint.js",
+ "util/javascript-hint.js",
+ "util/matchbrackets.js",
+ "util/searchcursor.js",
+ "util/match-highlighter.js"]
+with open("codemirror.combined.js", "w") as out:
+ out.write("// Combined build\n")
+ out.write("// Files: %s\n\n" % " ".join(files))
+ for srcfile in files:
+ with open(srcfile,"r") as src:
+ out.write(src.read())
5,578 gui/js/lib/codemirror/codemirror-combined.js
View
5,578 additions, 0 deletions not shown
1  gui/js/lib/codemirror/codemirror.css
View
@@ -1,3 +1,4 @@
+
/* BASICS */
.CodeMirror {
6 gui/js/lib/codemirror/main.js
View
@@ -0,0 +1,6 @@
+/*
+ * CodeMirror AMD wrapper. Returns a promise that gets fulfiled when codemirror and all plugins have been loaded.
+ */
+define(["./codemirror-combined"],function(){
+ return window.CodeMirror;
+});
20 gui/js/lib/codemirror/package.js
View
@@ -0,0 +1,20 @@
+/*jshint unused:false */
+var profile = (function() {
+ var copyOnly = function(filename,mid){
+ return (mid == "codemirror/codemirror-combined");
+ };
+ var amd = function(filename,mid){
+ return (mid == "codemirror/main");
+ };
+ var miniExclude = function(f, m){
+ return !(copyOnly(f,m) || amd(f,m) || (/\.css$/).test(m));
+ };
+
+ return {
+ resourceTags: {
+ amd: amd,
+ copyOnly: copyOnly,
+ miniExclude: miniExclude
+ }
+ };
+})();
6 gui/js/lib/codemirror/package.json
View
@@ -0,0 +1,6 @@
+{
+ "name": "CodeMirror",
+ "description": "CodeMirror is a JavaScript component that provides a code editor in the browser. ",
+ "version": 3.0,
+ "dojoBuild": "package.js"
+}
19 gui/js/lib/codemirror/util/package.js
View
@@ -0,0 +1,19 @@
+// wrapped by build app
+define("legacy/package", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){
+/*jshint unused:false */
+var profile = (function() {
+ return {
+ resourceTags: {
+ amd: function(filename,mid){
+ return (mid == "codemirror/main");
+ },
+ copyOnly: function(filename,mid){
+ return (mid == "codemirror/codemirror-combined");
+ },
+ miniExclude: function(f, m){
+ return !(copyOnly(f,m) || amd(f,m));
+ }
+ }
+ };
+})();
+});
0  gui/js/lib/highlight.css → gui/js/lib/highlight/highlight.css
View
File renamed without changes
0  gui/js/lib/highlight.js → gui/js/lib/highlight/highlight.js
View
File renamed without changes
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png
View
Deleted file not rendered
BIN  gui/js/lib/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png
View
Deleted file not rendered
304 gui/js/lib/jquery-ui/css/smoothness/jquery-ui.css
View
@@ -1,304 +0,0 @@
-/*!
- * jQuery UI CSS Framework 1.8.21
- *
- * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- */
-
-/* Layout helpers
-----------------------------------*/
-.ui-helper-hidden { display: none; }
-.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
-.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
-.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
-.ui-helper-clearfix:after { clear: both; }
-.ui-helper-clearfix { zoom: 1; }
-.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
-
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-disabled { cursor: default !important; }
-
-
-/* Icons
-----------------------------------*/
-
-/* states and images */
-.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
-
-
-/* Misc visuals
-----------------------------------*/
-
-/* Overlays */
-.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
-
-
-/*!
- * jQuery UI CSS Framework 1.8.21
- *
- * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- *
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
- */
-
-
-/* Component containers
-----------------------------------*/
-.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
-.ui-widget .ui-widget { font-size: 1em; }
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
-.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
-.ui-widget-content a { color: #222222; }
-.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
-.ui-widget-header a { color: #222222; }
-
-/* Interaction states
-----------------------------------*/
-.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
-.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
-.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
-.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
-.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
-.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
-.ui-widget :active { outline: none; }
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
-.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
-.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
-.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
-.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
-.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
-.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
-.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
-
-/* Icons
-----------------------------------*/
-
-/* states and images */
-.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
-.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
-.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
-
-/* positioning */
-.ui-icon-carat-1-n { background-position: 0 0; }
-.ui-icon-carat-1-ne { background-position: -16px 0; }
-.ui-icon-carat-1-e { background-position: -32px 0; }
-.ui-icon-carat-1-se { background-position: -48px 0; }
-.ui-icon-carat-1-s { background-position: -64px 0; }
-.ui-icon-carat-1-sw { background-position: -80px 0; }
-.ui-icon-carat-1-w { background-position: -96px 0; }
-.ui-icon-carat-1-nw { background-position: -112px 0; }
-.ui-icon-carat-2-n-s { background-position: -128px 0; }
-.ui-icon-carat-2-e-w { background-position: -144px 0; }
-.ui-icon-triangle-1-n { background-position: 0 -16px; }
-.ui-icon-triangle-1-ne { background-position: -16px -16px; }
-.ui-icon-triangle-1-e { background-position: -32px -16px; }
-.ui-icon-triangle-1-se { background-position: -48px -16px; }
-.ui-icon-triangle-1-s { background-position: -64px -16px; }
-.ui-icon-triangle-1-sw { background-position: -80px -16px; }
-.ui-icon-triangle-1-w { background-position: -96px -16px; }
-.ui-icon-triangle-1-nw { background-position: -112px -16px; }
-.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
-.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
-.ui-icon-arrow-1-n { background-position: 0 -32px; }
-.ui-icon-arrow-1-ne { background-position: -16px -32px; }
-.ui-icon-arrow-1-e { background-position: -32px -32px; }
-.ui-icon-arrow-1-se { background-position: -48px -32px; }
-.ui-icon-arrow-1-s { background-position: -64px -32px; }
-.ui-icon-arrow-1-sw { background-position: -80px -32px; }
-.ui-icon-arrow-1-w { background-position: -96px -32px; }
-.ui-icon-arrow-1-nw { background-position: -112px -32px; }
-.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
-.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
-.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
-.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
-.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
-.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
-.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
-.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
-.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
-.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
-.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
-.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
-.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
-.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
-.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
-.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
-.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
-.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
-.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
-.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
-.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
-.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
-.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
-.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
-.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
-.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
-.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
-.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
-.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
-.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
-.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
-.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
-.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
-.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
-.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
-.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
-.ui-icon-arrow-4 { background-position: 0 -80px; }
-.ui-icon-arrow-4-diag { background-position: -16px -80px; }
-.ui-icon-extlink { background-position: -32px -80px; }
-.ui-icon-newwin { background-position: -48px -80px; }
-.ui-icon-refresh { background-position: -64px -80px; }
-.ui-icon-shuffle { background-position: -80px -80px; }
-.ui-icon-transfer-e-w { background-position: -96px -80px; }
-.ui-icon-transferthick-e-w { background-position: -112px -80px; }
-.ui-icon-folder-collapsed { background-position: 0 -96px; }
-.ui-icon-folder-open { background-position: -16px -96px; }
-.ui-icon-document { background-position: -32px -96px; }
-.ui-icon-document-b { background-position: -48px -96px; }
-.ui-icon-note { background-position: -64px -96px; }
-.ui-icon-mail-closed { background-position: -80px -96px; }
-.ui-icon-mail-open { background-position: -96px -96px; }
-.ui-icon-suitcase { background-position: -112px -96px; }
-.ui-icon-comment { background-position: -128px -96px; }
-.ui-icon-person { background-position: -144px -96px; }
-.ui-icon-print { background-position: -160px -96px; }
-.ui-icon-trash { background-position: -176px -96px; }
-.ui-icon-locked { background-position: -192px -96px; }
-.ui-icon-unlocked { background-position: -208px -96px; }
-.ui-icon-bookmark { background-position: -224px -96px; }
-.ui-icon-tag { background-position: -240px -96px; }
-.ui-icon-home { background-position: 0 -112px; }
-.ui-icon-flag { background-position: -16px -112px; }
-.ui-icon-calendar { background-position: -32px -112px; }
-.ui-icon-cart { background-position: -48px -112px; }
-.ui-icon-pencil { background-position: -64px -112px; }
-.ui-icon-clock { background-position: -80px -112px; }
-.ui-icon-disk { background-position: -96px -112px; }
-.ui-icon-calculator { background-position: -112px -112px; }
-.ui-icon-zoomin { background-position: -128px -112px; }
-.ui-icon-zoomout { background-position: -144px -112px; }
-.ui-icon-search { background-position: -160px -112px; }
-.ui-icon-wrench { background-position: -176px -112px; }
-.ui-icon-gear { background-position: -192px -112px; }
-.ui-icon-heart { background-position: -208px -112px; }
-.ui-icon-star { background-position: -224px -112px; }
-.ui-icon-link { background-position: -240px -112px; }
-.ui-icon-cancel { background-position: 0 -128px; }
-.ui-icon-plus { background-position: -16px -128px; }
-.ui-icon-plusthick { background-position: -32px -128px; }
-.ui-icon-minus { background-position: -48px -128px; }
-.ui-icon-minusthick { background-position: -64px -128px; }
-.ui-icon-close { background-position: -80px -128px; }
-.ui-icon-closethick { background-position: -96px -128px; }
-.ui-icon-key { background-position: -112px -128px; }
-.ui-icon-lightbulb { background-position: -128px -128px; }
-.ui-icon-scissors { background-position: -144px -128px; }
-.ui-icon-clipboard { background-position: -160px -128px; }
-.ui-icon-copy { background-position: -176px -128px; }
-.ui-icon-contact { background-position: -192px -128px; }
-.ui-icon-image { background-position: -208px -128px; }
-.ui-icon-video { background-position: -224px -128px; }
-.ui-icon-script { background-position: -240px -128px; }
-.ui-icon-alert { background-position: 0 -144px; }
-.ui-icon-info { background-position: -16px -144px; }
-.ui-icon-notice { background-position: -32px -144px; }
-.ui-icon-help { background-position: -48px -144px; }
-.ui-icon-check { background-position: -64px -144px; }
-.ui-icon-bullet { background-position: -80px -144px; }
-.ui-icon-radio-off { background-position: -96px -144px; }
-.ui-icon-radio-on { background-position: -112px -144px; }
-.ui-icon-pin-w { background-position: -128px -144px; }
-.ui-icon-pin-s { background-position: -144px -144px; }
-.ui-icon-play { background-position: 0 -160px; }
-.ui-icon-pause { background-position: -16px -160px; }
-.ui-icon-seek-next { background-position: -32px -160px; }
-.ui-icon-seek-prev { background-position: -48px -160px; }
-.ui-icon-seek-end { background-position: -64px -160px; }
-.ui-icon-seek-start { background-position: -80px -160px; }
-/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
-.ui-icon-seek-first { background-position: -80px -160px; }
-.ui-icon-stop { background-position: -96px -160px; }
-.ui-icon-eject { background-position: -112px -160px; }
-.ui-icon-volume-off { background-position: -128px -160px; }
-.ui-icon-volume-on { background-position: -144px -160px; }
-.ui-icon-power { background-position: 0 -176px; }
-.ui-icon-signal-diag { background-position: -16px -176px; }
-.ui-icon-signal { background-position: -32px -176px; }
-.ui-icon-battery-0 { background-position: -48px -176px; }
-.ui-icon-battery-1 { background-position: -64px -176px; }
-.ui-icon-battery-2 { background-position: -80px -176px; }
-.ui-icon-battery-3 { background-position: -96px -176px; }
-.ui-icon-circle-plus { background-position: 0 -192px; }
-.ui-icon-circle-minus { background-position: -16px -192px; }
-.ui-icon-circle-close { background-position: -32px -192px; }
-.ui-icon-circle-triangle-e { background-position: -48px -192px; }
-.ui-icon-circle-triangle-s { background-position: -64px -192px; }
-.ui-icon-circle-triangle-w { background-position: -80px -192px; }
-.ui-icon-circle-triangle-n { background-position: -96px -192px; }
-.ui-icon-circle-arrow-e { background-position: -112px -192px; }
-.ui-icon-circle-arrow-s { background-position: -128px -192px; }
-.ui-icon-circle-arrow-w { background-position: -144px -192px; }
-.ui-icon-circle-arrow-n { background-position: -160px -192px; }
-.ui-icon-circle-zoomin { background-position: -176px -192px; }
-.ui-icon-circle-zoomout { background-position: -192px -192px; }
-.ui-icon-circle-check { background-position: -208px -192px; }
-.ui-icon-circlesmall-plus { background-position: 0 -208px; }
-.ui-icon-circlesmall-minus { background-position: -16px -208px; }
-.ui-icon-circlesmall-close { background-position: -32px -208px; }
-.ui-icon-squaresmall-plus { background-position: -48px -208px; }
-.ui-icon-squaresmall-minus { background-position: -64px -208px; }
-.ui-icon-squaresmall-close { background-position: -80px -208px; }
-.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
-.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
-.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
-.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
-.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
-.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
-
-
-/* Misc visuals
-----------------------------------*/
-
-/* Corner radius */
-.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
-.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
-.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
-.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
-
-/* Overlays */
-.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*!
- * jQuery UI Tabs 1.8.21
- *
- * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Tabs#theming
- */
-.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
-.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
-.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
-.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
-.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
-.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
-.ui-tabs .ui-tabs-hide { display: none !important; }
13 gui/js/lib/jquery-ui/jquery-ui.min.js
View
@@ -1,13 +0,0 @@
-/*! jQuery UI - v1.8.21 - 2012-06-05
-* https://github.com/jquery/jquery-ui
-* Includes: jquery.ui.core.js
-* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
-(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.21",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode)return;for(var e=0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;return b[d]>0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})})(jQuery);;/*! jQuery UI - v1.8.21 - 2012-06-05
-* https://github.com/jquery/jquery-ui
-* Includes: jquery.ui.widget.js
-* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
-(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("remove")}catch(f){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.charAt(0)==="_"?h:(f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent;if(f)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery);;/*! jQuery UI - v1.8.21 - 2012-06-05
-* https://github.com/jquery/jquery-ui
-* Includes: jquery.ui.tabs.js
-* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
-(function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1<this.anchors.length?1:-1)),c.disabled=a.map(a.grep(c.disabled,function(a,c){return a!=b}),function(a,c){return a>=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)==-1)return;return this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.21"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a<c.anchors.length?a:0)},a),b&&b.stopPropagation()}),f=c._unrotate||(c._unrotate=b?function(a){e()}:function(a){a.clientX&&c.rotate(null)});return a?(this.element.bind("tabsshow",e),this.anchors.bind(d.event+".tabs",f),e()):(clearTimeout(c.rotation),this.element.unbind("tabsshow",e),this.anchors.unbind(d.event+".tabs",f),delete this._rotate,delete this._unrotate),this}})})(jQuery);;
213 gui/js/lib/jquery.splitter.js
View
@@ -1,213 +0,0 @@
-/*
- * jQuery.splitter.js - two-pane splitter window plugin
- *
- * version 1.51 (2009/01/09)
- *
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
-
-/**
- * The splitter() plugin implements a two-pane resizable splitter window.
- * The selected elements in the jQuery object are converted to a splitter;
- * each selected element should have two child elements, used for the panes
- * of the splitter. The plugin adds a third child element for the splitbar.
- *
- * For more details see: http://methvin.com/splitter/
- *
- *
- * @example $('#MySplitter').splitter();
- * @desc Create a vertical splitter with default settings
- *
- * @example $('#MySplitter').splitter({type: 'h', accessKey: 'M'});
- * @desc Create a horizontal splitter resizable via Alt+Shift+M
- *
- * @name splitter
- * @type jQuery
- * @param Object options Options for the splitter (not required)
- * @cat Plugins/Splitter
- * @return jQuery
- * @author Dave Methvin (dave.methvin@gmail.com)
- */
- ;(function($){
-
- $.fn.splitter = function(args){
- args = args || {};
- return this.each(function() {
- var zombie; // left-behind splitbar for outline resizes
- function startSplitMouse(evt) {
- if ( opts.outline )
- zombie = zombie || bar.clone(false).insertAfter(A);
- panes.css("-webkit-user-select", "none"); // Safari selects A/B text on a move
- bar.addClass(opts.activeClass);
- A._posSplit = A[0][opts.pxSplit] - evt[opts.eventPos];
- $(document)
- .bind("mousemove", doSplitMouse)
- .bind("mouseup", endSplitMouse);
- }
- function doSplitMouse(evt) {
- var newPos = A._posSplit+evt[opts.eventPos];
- if ( opts.outline ) {
- newPos = Math.max(0, Math.min(newPos, splitter._DA - bar._DA));
- bar.css(opts.origin, newPos);
- } else
- resplit(newPos);
- }
- function endSplitMouse(evt) {
- bar.removeClass(opts.activeClass);
- var newPos = A._posSplit+evt[opts.eventPos];
- if ( opts.outline ) {
- zombie.remove(); zombie = null;
- resplit(newPos);
- }
- panes.css("-webkit-user-select", "text"); // let Safari select text again
- $(document)
- .unbind("mousemove", doSplitMouse)
- .unbind("mouseup", endSplitMouse);
- }
- function resplit(newPos) {
- // Constrain new splitbar position to fit pane size limits
- newPos = Math.max(A._min, splitter._DA - B._max,
- Math.min(newPos, A._max, splitter._DA - bar._DA - B._min));
- // Resize/position the two panes
- bar._DA = bar[0][opts.pxSplit]; // bar size may change during dock
- bar.css(opts.origin, newPos).css(opts.fixed, splitter._DF);
- A.css(opts.origin, 0).css(opts.split, newPos).css(opts.fixed, splitter._DF);
- B.css(opts.origin, newPos+bar._DA)
- .css(opts.split, splitter._DA-bar._DA-newPos).css(opts.fixed, splitter._DF);
- // IE fires resize for us; all others pay cash
- if ( !$.browser.msie )
- panes.trigger("resize");
- }
- function dimSum(jq, dims) {
- // Opera returns -1 for missing min/max width, turn into 0
- var sum = 0;
- for ( var i=1; i < arguments.length; i++ )
- sum += Math.max(parseInt(jq.css(arguments[i])) || 0, 0);
- return sum;
- }
-
- // Determine settings based on incoming opts, element classes, and defaults
- var vh = (args.splitHorizontal? 'h' : args.splitVertical? 'v' : args.type) || 'v';
- var opts = $.extend({
- activeClass: 'active', // class name for active splitter
- pxPerKey: 8, // splitter px moved per keypress
- tabIndex: 0, // tab order indicator
- accessKey: '' // accessKey for splitbar
- },{
- v: { // Vertical splitters:
- keyLeft: 39, keyRight: 37, cursor: "e-resize",
- splitbarClass: "vsplitbar", outlineClass: "voutline",
- type: 'v', eventPos: "pageX", origin: "left",
- split: "width", pxSplit: "offsetWidth", side1: "Left", side2: "Right",
- fixed: "height", pxFixed: "offsetHeight", side3: "Top", side4: "Bottom"
- },
- h: { // Horizontal splitters:
- keyTop: 40, keyBottom: 38, cursor: "n-resize",
- splitbarClass: "hsplitbar", outlineClass: "houtline",
- type: 'h', eventPos: "pageY", origin: "top",
- split: "height", pxSplit: "offsetHeight", side1: "Top", side2: "Bottom",
- fixed: "width", pxFixed: "offsetWidth", side3: "Left", side4: "Right"
- }
- }[vh], args);
-
- // Create jQuery object closures for splitter and both panes
- var splitter = $(this).css({position: "relative"});
- var panes = $(">*", splitter[0]).css({
- position: "absolute", // positioned inside splitter container
- "z-index": "1", // splitbar is positioned above
- "-moz-outline-style": "none" // don't show dotted outline
- });
- var A = $(panes[0]); // left or top
- var B = $(panes[1]); // right or bottom
-
- // Focuser element, provides keyboard support; title is shown by Opera accessKeys
- var focuser = $('<a href="javascript:void(0)"></a>')
- .attr({accessKey: opts.accessKey, tabIndex: opts.tabIndex, title: opts.splitbarClass})
- .bind($.browser.opera?"click":"focus", function(){ this.focus(); bar.addClass(opts.activeClass) })
- .bind("keydown", function(e){
- var key = e.which || e.keyCode;
- var dir = key==opts["key"+opts.side1]? 1 : key==opts["key"+opts.side2]? -1 : 0;
- if ( dir )
- resplit(A[0][opts.pxSplit]+dir*opts.pxPerKey, false);
- })
- .bind("blur", function(){ bar.removeClass(opts.activeClass) });
-
- // Splitbar element, can be already in the doc or we create one
- var bar = $(panes[2] || '<div></div>')
- .insertAfter(A).css("z-index", "100").append(focuser)
- .attr({"class": opts.splitbarClass, unselectable: "on"})
- .css({position: "absolute", "user-select": "none", "-webkit-user-select": "none",
- "-khtml-user-select": "none", "-moz-user-select": "none"})
- .bind("mousedown", startSplitMouse);
- // Use our cursor unless the style specifies a non-default cursor
- if ( /^(auto|default|)$/.test(bar.css("cursor")) )
- bar.css("cursor", opts.cursor);
-
- // Cache several dimensions for speed, rather than re-querying constantly
- bar._DA = bar[0][opts.pxSplit];
- splitter._PBF = $.boxModel? dimSum(splitter, "border"+opts.side3+"Width", "border"+opts.side4+"Width") : 0;
- splitter._PBA = $.boxModel? dimSum(splitter, "border"+opts.side1+"Width", "border"+opts.side2+"Width") : 0;
- A._pane = opts.side1;
- B._pane = opts.side2;
- $.each([A,B], function(){
- this._min = opts["min"+this._pane] || dimSum(this, "min-"+opts.split);
- this._max = opts["max"+this._pane] || dimSum(this, "max-"+opts.split) || 9999;
- this._init = opts["size"+this._pane]===true ?
- parseInt($.curCSS(this[0],opts.split)) : opts["size"+this._pane];
- });
-
- // Determine initial position, get from cookie if specified
- var initPos = A._init;
- if ( !isNaN(B._init) ) // recalc initial B size as an offset from the top or left side
- initPos = splitter[0][opts.pxSplit] - splitter._PBA - B._init - bar._DA;
- if ( opts.cookie ) {
- if ( !$.cookie )
- alert('jQuery.splitter(): jQuery cookie plugin required');
- var ckpos = parseInt($.cookie(opts.cookie));
- if ( !isNaN(ckpos) )
- initPos = ckpos;
- $(window).bind("unload", function(){
- var state = String(bar.css(opts.origin)); // current location of splitbar
- $.cookie(opts.cookie, state, {expires: opts.cookieExpires || 365,
- path: opts.cookiePath || document.location.pathname});
- });
- }
- if ( isNaN(initPos) ) // King Solomon's algorithm
- initPos = Math.round((splitter[0][opts.pxSplit] - splitter._PBA - bar._DA)/2);
-
- // Resize event propagation and splitter sizing
- if ( opts.anchorToWindow ) {
- // Account for margin or border on the splitter container and enforce min height
- splitter._hadjust = dimSum(splitter, "borderTopWidth", "borderBottomWidth", "marginBottom");
- splitter._hmin = Math.max(dimSum(splitter, "minHeight"), 20);
- $(window).bind("resize", function(){
- var top = splitter.offset().top;
- var wh = $(window).height();
- splitter.css("height", Math.max(wh-top-splitter._hadjust, splitter._hmin)+"px");
- if ( !$.browser.msie ) splitter.trigger("resize");
- }).trigger("resize");
- }
- else if ( opts.resizeToWidth && !$.browser.msie )
- $(window).bind("resize", function(){
- splitter.trigger("resize");
- });
-
- // Resize event handler; triggered immediately to set initial position
- splitter.bind("resize", function(e, size){
- // Custom events bubble in jQuery 1.3; don't get into a Yo Dawg
- if ( e.target != this ) return;
- // Determine new width/height of splitter container
- splitter._DF = splitter[0][opts.pxFixed] - splitter._PBF;
- splitter._DA = splitter[0][opts.pxSplit] - splitter._PBA;
- // Bail if splitter isn't visible or content isn't there yet
- if ( splitter._DF <= 0 || splitter._DA <= 0 ) return;
- // Re-divvy the adjustable dimension; maintain size of the preferred pane
- resplit(!isNaN(size)? size : (!(opts.sizeRight||opts.sizeBottom)? A[0][opts.pxSplit] :
- splitter._DA-B[0][opts.pxSplit]-bar._DA));
- }).trigger("resize" , [initPos]);
- });
-};
-
-})(jQuery);
0  gui/js/lib/jquery-1.8.3.js → gui/js/lib/jquery/jquery.js
View
File renamed without changes
0  gui/js/lib/backbone.js → gui/js/lib/legacy/backbone.js
View
File renamed without changes
0  gui/js/lib/backbone.marionette.js → gui/js/lib/legacy/backbone.marionette.js
View
File renamed without changes
0  gui/js/lib/modernizr.js → gui/js/lib/legacy/modernizr.js
View
File renamed without changes
10 gui/js/lib/legacy/package.js
View
@@ -0,0 +1,10 @@
+/*jshint unused:false */
+var profile = (function() {
+ return {
+ resourceTags: {
+ copyOnly: function(){
+ return true;
+ }
+ }
+ };
+})();
6 gui/js/lib/legacy/package.json
View
@@ -0,0 +1,6 @@
+{
+ "name": "Legacy Non-AMD modules",
+ "description": "go away",
+ "version": 1.0,
+ "dojoBuild": "package.js"
+}
0  gui/js/lib/underscore.es5.js → gui/js/lib/legacy/underscore.es5.js
View
File renamed without changes
0  gui/js/lib/underscore.js → gui/js/lib/legacy/underscore.js
View
File renamed without changes
0  gui/js/lib/_lodash.js → gui/js/lib/lodash/_lodash.js
View
File renamed without changes
2  gui/js/lib/lodash.js → gui/js/lib/lodash/lodash.js
View
@@ -1,4 +1,4 @@
-define(["_lodash"], function(_) {
+define(["./_lodash"], function(_) {
_.noConflict();
775 gui/js/lib/prettyprint.js
View
@@ -1,775 +0,0 @@
-/*
-Copyright (c) 2009 James Padolsey. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY James Padolsey ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL James Padolsey OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are
-those of the authors and should not be interpreted as representing official
-policies, either expressed or implied, of James Padolsey.
-
- AUTHOR James Padolsey (http://james.padolsey.com)
- VERSION 1.03.0
- UPDATED 29-10-2011
- CONTRIBUTORS
- David Waller
- Benjamin Drucker
-
-*/
-
-var prettyPrint = (function(){
-
- /* These "util" functions are not part of the core
- functionality but are all necessary - mostly DOM helpers */
-
- var util = {
-
- el: function(type, attrs) {
-
- /* Create new element */
- var el = document.createElement(type), attr;
-
- /*Copy to single object */
- attrs = util.merge({}, attrs);
-
- /* Add attributes to el */
- if (attrs && attrs.style) {
- var styles = attrs.style;
- util.applyCSS( el, attrs.style );
- delete attrs.style;
- }
- for (attr in attrs) {
- if (attrs.hasOwnProperty(attr)) {
- el[attr] = attrs[attr];
- }
- }
-
- return el;
-
- },
-
- applyCSS: function(el, styles) {
- /* Applies CSS to a single element */
- for (var prop in styles) {
- if (styles.hasOwnProperty(prop)) {
- try{
- /* Yes, IE6 SUCKS! */
- el.style[prop] = styles[prop];
- }catch(e){}
- }
- }
- },
-
- txt: function(t) {
- /* Create text node */
- return document.createTextNode(t);
- },
-
- row: function(cells, type, cellType) {
-
- /* Creates new <tr> */
- cellType = cellType || 'td';
-
- /* colSpan is calculated by length of null items in array */
- var colSpan = util.count(cells, null) + 1,
- tr = util.el('tr'), td,
- attrs = {
- style: util.getStyles(cellType, type),
- colSpan: colSpan,
- onmouseover: function() {
- var tds = this.parentNode.childNodes;
- util.forEach(tds, function(cell){
- if (cell.nodeName.toLowerCase() !== 'td') { return; }
- util.applyCSS(cell, util.getStyles('td_hover', type));
- });
- },
- onmouseout: function() {
- var tds = this.parentNode.childNodes;
- util.forEach(tds, function(cell){
- if (cell.nodeName.toLowerCase() !== 'td') { return; }
- util.applyCSS(cell, util.getStyles('td', type));
- });
- }
- };
-
- util.forEach(cells, function(cell){
-
- if (cell === null) { return; }
- /* Default cell type is <td> */
- td = util.el(cellType, attrs);
-
- if (cell.nodeType) {
- /* IsDomElement */
- td.appendChild(cell);
- } else {
- /* IsString */
- td.innerHTML = util.shorten(cell.toString());
- }
-
- tr.appendChild(td);
- });
-
- return tr;
- },
-
- hRow: function(cells, type){
- /* Return new <th> */
- return util.row(cells, type, 'th');
- },
-
- table: function(headings, type){
-
- headings = headings || [];
-
- /* Creates new table: */
- var attrs = {
- thead: {
- style:util.getStyles('thead',type)
- },
- tbody: {
- style:util.getStyles('tbody',type)
- },
- table: {
- style:util.getStyles('table',type)
- }
- },
- tbl = util.el('table', attrs.table),
- thead = util.el('thead', attrs.thead),
- tbody = util.el('tbody', attrs.tbody);
-
- if (headings.length) {
- tbl.appendChild(thead);
- thead.appendChild( util.hRow(headings, type) );
- }
- tbl.appendChild(tbody);
-
- return {
- /* Facade for dealing with table/tbody
- Actual table node is this.node: */
- node: tbl,
- tbody: tbody,
- thead: thead,
- appendChild: function(node) {
- this.tbody.appendChild(node);
- },
- addRow: function(cells, _type, cellType){
- this.appendChild(util.row.call(util, cells, (_type || type), cellType));
- return this;
- }
- };
- },
-
- shorten: function(str) {
- var max = 40;
- str = str.replace(/^\s\s*|\s\s*$|\n/g,'');
- return str.length > max ? (str.substring(0, max-1) + '...') : str;
- },
-
- htmlentities: function(str) {
- return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
- },
-
- merge: function(target, source) {
-
- /* Merges two (or more) objects,
- giving the last one precedence */
-
- if ( typeof target !== 'object' ) {
- target = {};
- }
-
- for (var property in source) {
-
- if ( source.hasOwnProperty(property) ) {
-
- var sourceProperty = source[ property ];
-
- if ( typeof sourceProperty === 'object' ) {
- target[ property ] = util.merge( target[ property ], sourceProperty );
- continue;
- }
-
- target[ property ] = sourceProperty;
-
- }
-
- }
-
- for (var a = 2, l = arguments.length; a < l; a++) {
- util.merge(target, arguments[a]);
- }
-
- return target;
- },
-
- count: function(arr, item) {
- var count = 0;
- for (var i = 0, l = arr.length; i< l; i++) {
- if (arr[i] === item) {
- count++;
- }
- }
- return count;
- },
-
- thead: function(tbl) {
- return tbl.getElementsByTagName('thead')[0];
- },
-
- forEach: function(arr, max, fn) {
-
- if (!fn) {
- fn = max;
- }
-
- /* Helper: iteration */
- var len = arr.length,
- index = -1;
-
- while (++index < len) {
- if(fn( arr[index], index, arr ) === false) {
- break;
- }
- }
-
- return true;
- },
-
- type: function(v){
- try {
- /* Returns type, e.g. "string", "number", "array" etc.
- Note, this is only used for precise typing. */
- if (v === null) { return 'null'; }
- if (v === undefined) { return 'undefined'; }
- var oType = Object.prototype.toString.call(v).match(/\s(.+?)\]/)[1].toLowerCase();
- if (v.nodeType) {
- if (v.nodeType === 1) {
- return 'domelement';
- }
- return 'domnode';
- }
- if (/^(string|number|array|regexp|function|date|boolean)$/.test(oType)) {
- return oType;
- }
- if (typeof v === 'object') {
- return v.jquery && typeof v.jquery === 'string' ? 'jquery' : 'object';
- }
- if (v === window || v === document) {
- return 'object';
- }
- return 'default';
- } catch(e) {
- return 'default';
- }
- },
-
- within: function(ref) {
- /* Check existence of a val within an object
- RETURNS KEY */
- return {
- is: function(o) {
- for (var i in ref) {
- if (ref[i] === o) {
- return i;
- }
- }
- return '';
- }
- };
- },
-
- common: {
- circRef: function(obj, key, settings) {
- return util.expander(
- '[POINTS BACK TO <strong>' + (key) + '</strong>]',
- 'Click to show this item anyway',
- function() {
- this.parentNode.appendChild( prettyPrintThis(obj,{maxDepth:1}) );
- }
- );
- },
- depthReached: function(obj, settings) {
- return util.expander(
- '[DEPTH REACHED]',
- 'Click to show this item anyway',
- function() {
- try {
- this.parentNode.appendChild( prettyPrintThis(obj,{maxDepth:1}) );
- } catch(e) {
- this.parentNode.appendChild(
- util.table(['ERROR OCCURED DURING OBJECT RETRIEVAL'],'error').addRow([e.message]).node
- );
- }
- }
- );
- }
- },
-
- getStyles: function(el, type) {
- type = prettyPrintThis.settings.styles[type] || {};
- return util.merge(
- {}, prettyPrintThis.settings.styles['default'][el], type[el]
- );
- },
-
- expander: function(text, title, clickFn) {
- return util.el('a', {
- innerHTML: util.shorten(text) + ' <b style="visibility:hidden;">[+]</b>',
- title: title,
- onmouseover: function() {
- this.getElementsByTagName('b')[0].style.visibility = 'visible';
- },
- onmouseout: function() {
- this.getElementsByTagName('b')[0].style.visibility = 'hidden';
- },
- onclick: function() {
- this.style.display = 'none';
- clickFn.call(this);
- return false;
- },
- style: {
- cursor: 'pointer'
- }
- });
- },
-
- stringify: function(obj) {
-
- /* Bit of an ugly duckling!
- - This fn returns an ATTEMPT at converting an object/array/anyType
- into a string, kinda like a JSON-deParser
- - This is used for when |settings.expanded === false| */
-
- var type = util.type(obj),
- str, first = true;
- if ( type === 'array' ) {
- str = '[';
- util.forEach(obj, function(item,i){
- str += (i===0?'':', ') + util.stringify(item);
- });
- return str + ']';
- }
- if (typeof obj === 'object') {
- str = '{';
- for (var i in obj){
- if (obj.hasOwnProperty(i)) {
- str += (first?'':', ') + i + ':' + util.stringify(obj[i]);
- first = false;
- }
- }
- return str + '}';
- }
- if (type === 'regexp') {
- return '/' + obj.source + '/';
- }
- if (type === 'string') {
- return '"' + obj.replace(/"/g,'\\"') + '"';
- }
- return obj.toString();
- },
-
- headerGradient: (function(){
-
- var canvas = document.createElement('canvas');
- if (!canvas.getContext) { return ''; }
- var cx = canvas.getContext('2d');
- canvas.height = 30;
- canvas.width = 1;
-
- var linearGrad = cx.createLinearGradient(0,0,0,30);
- linearGrad.addColorStop(0,'rgba(0,0,0,0)');
- linearGrad.addColorStop(1,'rgba(0,0,0,0.25)');
-
- cx.fillStyle = linearGrad;
- cx.fillRect(0,0,1,30);
-
- var dataURL = canvas.toDataURL && canvas.toDataURL();
- return 'url(' + (dataURL || '') + ')';
-
- })()
-
- };
-
- // Main..
- var prettyPrintThis = function(obj, options) {
-
- /*
- * obj :: Object to be printed
- * options :: Options (merged with config)
- */
-
- options = options || {};
-
- var settings = util.merge( {}, prettyPrintThis.config, options ),
- container = util.el('div'),
- config = prettyPrintThis.config,
- currentDepth = 0,
- stack = {},
- hasRunOnce = false;
-
- /* Expose per-call settings.
- Note: "config" is overwritten (where necessary) by options/"settings"
- So, if you need to access/change *DEFAULT* settings then go via ".config" */
- prettyPrintThis.settings = settings;
-
- var typeDealer = {
- string : function(item){
- return util.txt('"' + util.shorten(item.replace(/"/g,'\\"')) + '"');
- },
- number : function(item) {
- return util.txt(item);
- },
- regexp : function(item) {
-
- var miniTable = util.table(['RegExp',null], 'regexp');
- var flags = util.table();
- var span = util.expander(
- '/' + item.source + '/',
- 'Click to show more',
- function() {
- this.parentNode.appendChild(miniTable.node);
- }
- );
-
- flags
- .addRow(['g', item.global])
- .addRow(['i', item.ignoreCase])
- .addRow(['m', item.multiline]);
-
- miniTable
- .addRow(['source', '/' + item.source + '/'])
- .addRow(['flags', flags.node])
- .addRow(['lastIndex', item.lastIndex]);
-
- return settings.expanded ? miniTable.node : span;
- },
- domelement : function(element, depth) {
-
- var miniTable = util.table(['DOMElement',null], 'domelement'),
- props = ['id', 'className', 'innerHTML', 'src', 'href'], elname = element.nodeName || '';
-
- miniTable.addRow(['tag', '&lt;' + elname.toLowerCase() + '&gt;']);
-
- util.forEach(props, function(prop){
- if ( element[prop] ) {
- miniTable.addRow([ prop, util.htmlentities(element[prop]) ]);
- }
- });
-
- return settings.expanded ? miniTable.node : util.expander(
- 'DOMElement (' + elname.toLowerCase() + ')',
- 'Click to show more',
- function() {
- this.parentNode.appendChild(miniTable.node);
- }
- );
- },
- domnode : function(node){
-
- /* Deals with all DOMNodes that aren't elements (nodeType !== 1) */
- var miniTable = util.table(['DOMNode',null], 'domelement'),
- data = util.htmlentities( (node.data || 'UNDEFINED').replace(/\n/g,'\\n') );
- miniTable
- .addRow(['nodeType', node.nodeType + ' (' + node.nodeName + ')'])
- .addRow(['data', data]);
-
- return settings.expanded ? miniTable.node : util.expander(
- 'DOMNode',
- 'Click to show more',
- function() {
- this.parentNode.appendChild(miniTable.node);
- }
- );
- },
- jquery : function(obj, depth, key) {
- return typeDealer['array'](obj, depth, key, true);
- },
- object : function(obj, depth, key) {
-
- /* Checking depth + circular refs */
- /* Note, check for circular refs before depth; just makes more sense */
- var stackKey = util.within(stack).is(obj);
- if ( stackKey ) {
- return util.common.circRef(obj, stackKey, settings);
- }
- stack[key||'TOP'] = obj;
- if (depth === settings.maxDepth) {
- return util.common.depthReached(obj, settings);
- }
-
- var table = util.table(['Object', null],'object'),
- isEmpty = true;
-
- for (var i in obj) {
- if (!obj.hasOwnProperty || obj.hasOwnProperty(i)) {
- var item = obj[i],
- type = util.type(item);
- isEmpty = false;
- try {
- table.addRow([i, typeDealer[ type ](item, depth+1, i)], type);
- } catch(e) {
- /* Security errors are thrown on certain Window/DOM properties */
- if (window.console && window.console.log) {
- console.log(e.message);
- }
- }
- }
- }
-
- if (isEmpty) {
- table.addRow(['<small>[empty]</small>']);
- } else {
- table.thead.appendChild(
- util.hRow(['key','value'], 'colHeader')
- );
- }
-
- var ret = (settings.expanded || hasRunOnce) ? table.node : util.expander(
- util.stringify(obj),
- 'Click to show more',
- function() {
- this.parentNode.appendChild(table.node);
- }
- );
-
- hasRunOnce = true;
-
- return ret;
-
- },
- array : function(arr, depth, key, jquery) {
-
- /* Checking depth + circular refs */
- /* Note, check for circular refs before depth; just makes more sense */
- var stackKey = util.within(stack).is(arr);
- if ( stackKey ) {
- return util.common.circRef(arr, stackKey);
- }
- stack[key||'TOP'] = arr;
- if (depth === settings.maxDepth) {
- return util.common.depthReached(arr);
- }
-
- /* Accepts a table and modifies it */
- var me = jquery ? 'jQuery' : 'Array', table = util.table([me + '(' + arr.length + ')', null], jquery ? 'jquery' : me.toLowerCase()),
- isEmpty = true,
- count = 0;
-
- if (jquery){
- table.addRow(['selector',arr.selector]);
- }
-
- util.forEach(arr, function(item,i){
- if (++count > settings.maxArray) {
- table.addRow([
- i + '..' + (arr.length-1),
- typeDealer[ util.type(item) ]('...', depth+1, i)
- ]);
- return false;
- }
- isEmpty = false;
- table.addRow([i, typeDealer[ util.type(item) ](item, depth+1, i)]);
- });
-
- if (!jquery){
- if (isEmpty) {
- table.addRow(['<small>[empty]</small>']);
- } else {
- table.thead.appendChild( util.hRow(['index','value'], 'colHeader') );
- }
- }
-
- return settings.expanded ? table.node : util.expander(
- util.stringify(arr),
- 'Click to show more',
- function() {
- this.parentNode.appendChild(table.node);
- }
- );
-
- },
- 'function' : function(fn, depth, key) {
-
- /* Checking JUST circular refs */
- var stackKey = util.within(stack).is(fn);
- if ( stackKey ) { return util.common.circRef(fn, stackKey); }
- stack[key||'TOP'] = fn;
-
- var miniTable = util.table(['Function',null], 'function'),
- argsTable = util.table(['Arguments']),
- args = fn.toString().match(/\((.+?)\)/),
- body = fn.toString().match(/\(.*?\)\s+?\{?([\S\s]+)/)[1].replace(/\}?$/,'');
-
- miniTable
- .addRow(['arguments', args ? args[1].replace(/[^\w_,\s]/g,'') : '<small>[none/native]</small>'])
- .addRow(['body', body]);
-
- return settings.expanded ? miniTable.node : util.expander(
- 'function(){...}',
- 'Click to see more about this function.',
- function(){
- this.parentNode.appendChild(miniTable.node);
- }
- );
- },
- 'date' : function(date) {
-
- var miniTable = util.table(['Date',null], 'date'),
- sDate = date.toString().split(/\s/);
-
- /* TODO: Make this work well in IE! */
- miniTable
- .addRow(['Time', sDate[4]])
- .addRow(['Date', sDate.slice(0,4).join('-')]);
-
- return settings.expanded ? miniTable.node : util.expander(
- 'Date (timestamp): ' + (+date),
- 'Click to see a little more info about this date',
- function() {
- this.parentNode.appendChild(miniTable.node);
- }
- );
-
- },
- 'boolean' : function(bool) {
- return util.txt( bool.toString().toUpperCase() );
- },
- 'undefined' : function() {
- return util.txt('UNDEFINED');
- },
- 'null' : function() {
- return util.txt('NULL');
- },
- 'default' : function() {
- /* When a type cannot be found */
- return util.txt('prettyPrint: TypeNotFound Error');
- }
- };
-
- container.appendChild( typeDealer[ (settings.forceObject) ? 'object' : util.type(obj) ](obj, currentDepth) );
-
- return container;
-
- };
-
- /* Configuration */
-
- /* All items can be overwridden by passing an
- "options" object when calling prettyPrint */
- prettyPrintThis.config = {
-
- /* Try setting this to false to save space */
- expanded: true,
-
- forceObject: false,
- maxDepth: 3,
- maxArray: -1, // default is unlimited
- styles: {
- array: {
- th: {
- backgroundColor: '#6DBD2A',
- color: 'white'
- }
- },
- 'function': {
- th: {
- backgroundColor: '#D82525'
- }
- },
- regexp: {
- th: {
- backgroundColor: '#E2F3FB',
- color: '#000'
- }
- },
- object: {
- th: {
- backgroundColor: '#1F96CF'
- }
- },
- jquery : {
- th: {
- backgroundColor: '#FBF315'
- }
- },
- error: {
- th: {
- backgroundColor: 'red',
- color: 'yellow'
- }
- },
- domelement: {
- th: {
- backgroundColor: '#F3801E'
- }
- },
- date: {
- th: {
- backgroundColor: '#A725D8'
- }
- },
- colHeader: {
- th: {
- backgroundColor: '#EEE',
- color: '#000',
- textTransform: 'uppercase'
- }
- },
- 'default': {
- table: {
- borderCollapse: 'collapse',
- width: '100%'
- },
- td: {
- padding: '5px',
- fontSize: '12px',
- backgroundColor: '#FFF',
- color: '#222',
- border: '1px solid #000',
- verticalAlign: 'top',
- fontFamily: '"Consolas","Lucida Console",Courier,mono',
- whiteSpace: 'nowrap'
- },
- td_hover: {
- /* Styles defined here will apply to all tr:hover > td,
- - Be aware that "inheritable" properties (e.g. fontWeight) WILL BE INHERITED */
- },
- th: {
- padding: '5px',
- fontSize: '12px',
- backgroundColor: '#222',
- color: '#EEE',
- textAlign: 'left',
- border: '1px solid #000',
- verticalAlign: 'top',
- fontFamily: '"Consolas","Lucida Console",Courier,mono',
- backgroundImage: util.headerGradient,
- backgroundRepeat: 'repeat-x'
- }
- }
- }
- };
-
- return prettyPrintThis;
-
-})();
2  gui/js/lib/util
@@ -1 +1 @@
-Subproject commit 605abb6dd25e3c748f96fc0766fee27f98098c47
+Subproject commit 57bdb06edefddf1fcbc0d4a072c5c5b96b9f2950
37 gui/js/release.profile.js
View
@@ -1,38 +1,21 @@
var profile = {
- basePath: "./",
+ basePath: ".",
-
- //mini: true,
+ cssOptimize: "comments",
+ mini: true,
//optimize: "closure",
- //layerOptimize: "closure",
+ layerOptimize: false,
//stripConsole: "all",
+ selectorEngine: "acme",
- releaseDir: "./release",
- hasReport: true,
+ releaseDir: "../../dist/gui/js",
+ hasReport: false,
action: "release",
- packages:[
- {
- name: "dojo",
- location: "./lib/dojo",
- discard: true
- },
- {
- name: "dijit",
- location: "./lib/dijit"
- },
- {
- name: "HoneyProxy",
- location: "./HoneyProxy"
- }
- ],
-
layers: {
"dojo/dojo": {
- //customBase: true,
- //boot: true,
- include: [
- "HoneyProxy/main"
- ],
+ customBase: true,
+ boot: true,
+ include:["HoneyProxy/main"]
},
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.