rbbt-views 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbbt/workflow/rest.rb +365 -95
- data/lib/rbbt/workflow/rest/client.rb +2 -0
- data/lib/rbbt/workflow/rest/entity.rb +82 -76
- data/lib/rbbt/workflow/rest/finder.rb +78 -0
- data/lib/rbbt/workflow/rest/helpers.rb +288 -47
- data/lib/rbbt/workflow/rest/notes.rb +125 -0
- data/lib/rbbt/workflow/rest/render.rb +280 -240
- data/lib/rbbt/workflow/rest/util.rb +47 -31
- data/share/views/compass/_base.sass +0 -8
- data/share/views/compass/colors.sass +10 -0
- data/share/views/compass/colors/ventana_azul.sass +5 -0
- data/share/views/compass/compass.config +2 -1
- data/share/views/compass/details.sass +50 -0
- data/share/views/compass/dom.sass +64 -0
- data/share/views/compass/embedded.sass +111 -0
- data/share/views/compass/entities.sass +8 -0
- data/share/views/compass/error.sass +13 -0
- data/share/views/compass/finder.sass +42 -0
- data/share/views/compass/fonts.sass +8 -0
- data/share/views/compass/form.sass +49 -1
- data/share/views/compass/header.sass +68 -0
- data/share/views/compass/{main.sass → helpers.sass} +53 -21
- data/share/views/compass/layout.sass +31 -199
- data/share/views/compass/lists.sass +128 -0
- data/share/views/compass/menu.sass +35 -0
- data/share/views/compass/notes.sass +52 -0
- data/share/views/compass/sizes.sass +8 -0
- data/share/views/compass/tables.sass +22 -0
- data/share/views/compass/wait.sass +9 -0
- data/share/views/edit_list.haml +41 -30
- data/share/views/entity/GOTerm.haml +4 -3
- data/share/views/entity/Gene.haml +8 -1
- data/share/views/entity/GenomicMutation.haml +4 -1
- data/share/views/entity/KeggPathway.haml +1 -1
- data/share/views/entity/MutatedIsoform.haml +68 -11
- data/share/views/entity/NCIBioCartaPathway.haml +2 -3
- data/share/views/entity/NCINaturePathway.haml +3 -3
- data/share/views/entity/NCIReactomePathway.haml +2 -3
- data/share/views/entity/PfamDomain.haml +2 -0
- data/share/views/entity/Transcript.haml +10 -0
- data/share/views/entity_list/Default.haml +4 -0
- data/share/views/entity_list/Default/compare_to_other_lists.haml +41 -0
- data/share/views/entity_list/Default/entity_links.haml +6 -0
- data/share/views/entity_list/Default/find_in_other_lists.haml +36 -0
- data/share/views/error.haml +6 -1
- data/share/views/find.haml +10 -0
- data/share/views/form.haml +1 -1
- data/share/views/info.haml +1 -1
- data/share/views/js/_action_setup.js +250 -0
- data/share/views/js/_basic.js +269 -0
- data/share/views/js/_cytoscape.js +44 -0
- data/share/views/js/_details.js +239 -0
- data/share/views/js/_dom_updates.js +384 -0
- data/share/views/js/_embedded.js +95 -0
- data/share/views/js/_images.js +20 -0
- data/share/views/js/_layout.js +21 -0
- data/share/views/js/_lists.js +224 -0
- data/share/views/js/_table.js +36 -0
- data/share/views/js/_workflow.js +42 -0
- data/share/views/js/app.js +0 -570
- data/share/views/js/fix_tablesorter_scientific.js +25 -0
- data/share/views/js/json2.js +487 -0
- data/share/views/layout.haml +8 -98
- data/share/views/notes.haml +15 -0
- data/share/views/partials/_form.haml +22 -7
- data/share/views/partials/_job_control.haml +8 -8
- data/share/views/partials/_list_control.haml +32 -0
- data/share/views/partials/_list_header.haml +6 -0
- data/share/views/partials/_note_list.haml +64 -0
- data/share/views/partials/_result_table.haml +12 -7
- data/share/views/partials/_result_table_controls.haml +11 -5
- data/share/views/partials/_table.haml +24 -6
- data/share/views/partials/layout/_coda.haml +10 -0
- data/share/views/partials/layout/_details.haml +25 -0
- data/share/views/partials/layout/_head.haml +22 -0
- data/share/views/partials/layout/_header.haml +29 -0
- data/share/views/partials/layout/_menu.haml +20 -0
- data/share/views/partials/layout/_resources.haml +41 -0
- data/share/views/public/background.png +0 -0
- data/share/views/public/plugins/cytoscape-web/LICENSE.txt +504 -0
- data/share/views/public/plugins/cytoscape-web/README.txt +213 -0
- data/share/views/public/plugins/cytoscape-web/js/AC_OETags.js +1 -0
- data/share/views/public/plugins/cytoscape-web/js/cytoscapeweb.js +1 -0
- data/share/views/public/plugins/cytoscape-web/js/json2.js +1 -0
- data/share/views/public/plugins/cytoscape-web/swf/CytoscapeWeb.swf +0 -0
- data/share/views/public/plugins/cytoscape-web/swf/playerProductInstall.swf +0 -0
- data/share/views/public/plugins/fancybox/CHANGELOG.md +68 -0
- data/share/views/public/plugins/fancybox/README.md +220 -0
- data/share/views/public/plugins/fancybox/css/blank.gif +0 -0
- data/share/views/public/plugins/fancybox/css/fancybox_loading.gif +0 -0
- data/share/views/public/plugins/fancybox/css/fancybox_sprite.png +0 -0
- data/share/views/public/plugins/fancybox/css/jquery.fancybox.css +234 -0
- data/share/views/public/plugins/fancybox/helpers/fancybox_buttons.png +0 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.css +85 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-media.js +85 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
- data/share/views/public/plugins/fancybox/js/jquery.fancybox.js +1463 -0
- data/share/views/public/plugins/fancybox/js/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/share/views/public/plugins/fancybox/lib/jquery-1.7.2.min.js +4 -0
- data/share/views/public/plugins/featuredimagezoomer/css/featuredimagezoomer.css +8 -0
- data/share/views/public/plugins/featuredimagezoomer/images/spinningred.gif +0 -0
- data/share/views/public/plugins/featuredimagezoomer/js/featuredimagezoomer.js +245 -0
- data/share/views/public/plugins/jquery-ui.hitarea.js +173 -0
- data/share/views/public/plugins/jquery/js/jquery-1.8.0.min.js +2 -0
- data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.css +25 -0
- data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.js +184 -0
- data/share/views/public/plugins/tablesorter/build.xml +26 -0
- data/share/views/public/plugins/tablesorter/build/ParseMaster.js +106 -0
- data/share/views/public/plugins/tablesorter/build/js.jar +0 -0
- data/share/views/public/plugins/tablesorter/build/jsmin.js +316 -0
- data/share/views/public/plugins/tablesorter/build/min.js +5 -0
- data/share/views/public/plugins/tablesorter/build/pack.js +5 -0
- data/share/views/public/plugins/tablesorter/build/packer.js +316 -0
- data/share/views/public/plugins/tablesorter/build/writeFile.js +19 -0
- data/share/views/public/plugins/tablesorter/changelog +41 -0
- data/share/views/public/plugins/tablesorter/docs/assets/ajax-content.html +43 -0
- data/share/views/public/plugins/tablesorter/docs/css/jq.css +29 -0
- data/share/views/public/plugins/tablesorter/docs/example-ajax.html +119 -0
- data/share/views/public/plugins/tablesorter/docs/example-empty-table.html +75 -0
- data/share/views/public/plugins/tablesorter/docs/example-extending-defaults.html +109 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-headers.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-parsers.html +105 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-sort-list.html +107 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-debug.html +116 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-digits.html +106 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-force.html +107 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-key.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-list.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-order.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-text-extraction.html +85 -0
- data/share/views/public/plugins/tablesorter/docs/example-options-headers.html +118 -0
- data/share/views/public/plugins/tablesorter/docs/example-pager.html +329 -0
- data/share/views/public/plugins/tablesorter/docs/example-parsers.html +112 -0
- data/share/views/public/plugins/tablesorter/docs/example-trigger-sort.html +113 -0
- data/share/views/public/plugins/tablesorter/docs/example-triggers.html +336 -0
- data/share/views/public/plugins/tablesorter/docs/example-update-cell.html +118 -0
- data/share/views/public/plugins/tablesorter/docs/example-widgets.html +383 -0
- data/share/views/public/plugins/tablesorter/docs/img/external.png +0 -0
- data/share/views/public/plugins/tablesorter/docs/index.html +576 -0
- data/share/views/public/plugins/tablesorter/docs/js/docs.js +23 -0
- data/share/views/public/plugins/tablesorter/docs/js/examples.js +29 -0
- data/share/views/public/plugins/tablesorter/jquery-latest.js +154 -0
- data/share/views/public/plugins/tablesorter/jquery.metadata.js +122 -0
- data/share/views/public/plugins/tablesorter/jquery.tablesorter.js +1031 -0
- data/share/views/public/plugins/tablesorter/jquery.tablesorter.min.js +4 -0
- data/share/views/public/plugins/tablesorter/tests/assets/ajax-content.html +28 -0
- data/share/views/public/plugins/tablesorter/tests/cell.metadata.html +112 -0
- data/share/views/public/plugins/tablesorter/tests/checkbox.html +117 -0
- data/share/views/public/plugins/tablesorter/tests/colspan.html +149 -0
- data/share/views/public/plugins/tablesorter/tests/demo.html +353 -0
- data/share/views/public/plugins/tablesorter/tests/index.html +22 -0
- data/share/views/public/plugins/tablesorter/tests/large.html +30 -0
- data/share/views/public/plugins/tablesorter/tests/lockedOrder.html +355 -0
- data/share/views/public/plugins/tablesorter/tests/metadata.html +320 -0
- data/share/views/public/plugins/tablesorter/tests/multiple-headers.html +67 -0
- data/share/views/public/plugins/tablesorter/tests/pager.html +553 -0
- data/share/views/public/plugins/tablesorter/themes/blue/asc.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/bg.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/blue.zip +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/desc.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/style.css +39 -0
- data/share/views/public/plugins/tablesorter/themes/green/asc.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/bg.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/desc.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/green.zip +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/style.css +39 -0
- data/share/views/public/plugins/wz_jsgraphics.js +1108 -0
- data/share/views/public/tmp/foo +0 -0
- data/share/views/result.haml +6 -1
- data/share/views/step_error.haml +5 -0
- data/share/views/user_lists.haml +8 -7
- data/share/views/wait.haml +40 -2
- metadata +302 -106
- data/share/views/compass/screen.sass +0 -8
- data/share/views/public/plugins/jquery/js/jquery-1.6.2.min.js +0 -18
@@ -0,0 +1,316 @@
|
|
1
|
+
/*
|
2
|
+
packer, version 2.0.2 (2005-08-19)
|
3
|
+
Copyright 2004-2005, Dean Edwards
|
4
|
+
License: http://creativecommons.org/licenses/LGPL/2.1/
|
5
|
+
*/
|
6
|
+
|
7
|
+
function pack(_script, _encoding, _fastDecode, _specialChars) {
|
8
|
+
// constants
|
9
|
+
var $IGNORE = "$1";
|
10
|
+
|
11
|
+
// validate parameters
|
12
|
+
_script += "\n";
|
13
|
+
_encoding = Math.min(parseInt(_encoding), 95);
|
14
|
+
|
15
|
+
// apply all parsing routines
|
16
|
+
function _pack($script) {
|
17
|
+
var i, $parse;
|
18
|
+
for (i = 0; ($parse = _parsers[i]); i++) {
|
19
|
+
$script = $parse($script);
|
20
|
+
}
|
21
|
+
return $script;
|
22
|
+
};
|
23
|
+
|
24
|
+
// unpacking function - this is the boot strap function
|
25
|
+
// data extracted from this packing routine is passed to
|
26
|
+
// this function when decoded in the target
|
27
|
+
var _unpack = function($packed, $ascii, $count, $keywords, $encode, $decode) {
|
28
|
+
while ($count--)
|
29
|
+
if ($keywords[$count])
|
30
|
+
$packed = $packed.replace(new RegExp('\\b' + $encode($count) + '\\b', 'g'), $keywords[$count]);
|
31
|
+
return $packed;
|
32
|
+
};
|
33
|
+
|
34
|
+
// code-snippet inserted into the unpacker to speed up decoding
|
35
|
+
var _decode = function() {
|
36
|
+
// does the browser support String.replace where the
|
37
|
+
// replacement value is a function?
|
38
|
+
if (!''.replace(/^/, String)) {
|
39
|
+
// decode all the values we need
|
40
|
+
while ($count--) $decode[$encode($count)] = $keywords[$count] || $encode($count);
|
41
|
+
// global replacement function
|
42
|
+
$keywords = [function($encoded){return $decode[$encoded]}];
|
43
|
+
// generic match
|
44
|
+
$encode = function(){return'\\w+'};
|
45
|
+
// reset the loop counter - we are now doing a global replace
|
46
|
+
$count = 1;
|
47
|
+
}
|
48
|
+
};
|
49
|
+
|
50
|
+
// keep a list of parsing functions, they'll be executed all at once
|
51
|
+
var _parsers = [];
|
52
|
+
function _addParser($parser) {
|
53
|
+
_parsers[_parsers.length] = $parser;
|
54
|
+
};
|
55
|
+
|
56
|
+
// zero encoding - just removal of white space and comments
|
57
|
+
function _basicCompression($script) {
|
58
|
+
var $parser = new ParseMaster;
|
59
|
+
// make safe
|
60
|
+
$parser.escapeChar = "\\";
|
61
|
+
// protect strings
|
62
|
+
$parser.add(/'[^'\n\r]*'/, $IGNORE);
|
63
|
+
$parser.add(/"[^"\n\r]*"/, $IGNORE);
|
64
|
+
// remove comments
|
65
|
+
$parser.add(/\/\/[^\n\r]*[\n\r]/, " ");
|
66
|
+
$parser.add(/\/\*[^*]*\*+([^\/][^*]*\*+)*\//, " ");
|
67
|
+
// protect regular expressions
|
68
|
+
$parser.add(/\s+(\/[^\/\n\r\*][^\/\n\r]*\/g?i?)/, "$2"); // IGNORE
|
69
|
+
$parser.add(/[^\w\x24\/'"*)\?:]\/[^\/\n\r\*][^\/\n\r]*\/g?i?/, $IGNORE);
|
70
|
+
// remove: ;;; doSomething();
|
71
|
+
if (_specialChars) $parser.add(/;;;[^\n\r]+[\n\r]/);
|
72
|
+
// remove redundant semi-colons
|
73
|
+
$parser.add(/\(;;\)/, $IGNORE); // protect for (;;) loops
|
74
|
+
$parser.add(/;+\s*([};])/, "$2");
|
75
|
+
// apply the above
|
76
|
+
$script = $parser.exec($script);
|
77
|
+
|
78
|
+
// remove white-space
|
79
|
+
$parser.add(/(\b|\x24)\s+(\b|\x24)/, "$2 $3");
|
80
|
+
$parser.add(/([+\-])\s+([+\-])/, "$2 $3");
|
81
|
+
$parser.add(/\s+/, "");
|
82
|
+
// done
|
83
|
+
return $parser.exec($script);
|
84
|
+
};
|
85
|
+
|
86
|
+
function _encodeSpecialChars($script) {
|
87
|
+
var $parser = new ParseMaster;
|
88
|
+
// replace: $name -> n, $$name -> na
|
89
|
+
$parser.add(/((\x24+)([a-zA-Z$_]+))(\d*)/, function($match, $offset) {
|
90
|
+
var $length = $match[$offset + 2].length;
|
91
|
+
var $start = $length - Math.max($length - $match[$offset + 3].length, 0);
|
92
|
+
return $match[$offset + 1].substr($start, $length) + $match[$offset + 4];
|
93
|
+
});
|
94
|
+
// replace: _name -> _0, double-underscore (__name) is ignored
|
95
|
+
var $regexp = /\b_[A-Za-z\d]\w*/;
|
96
|
+
// build the word list
|
97
|
+
var $keywords = _analyze($script, _globalize($regexp), _encodePrivate);
|
98
|
+
// quick ref
|
99
|
+
var $encoded = $keywords.$encoded;
|
100
|
+
$parser.add($regexp, function($match, $offset) {
|
101
|
+
return $encoded[$match[$offset]];
|
102
|
+
});
|
103
|
+
return $parser.exec($script);
|
104
|
+
};
|
105
|
+
|
106
|
+
function _encodeKeywords($script) {
|
107
|
+
// escape high-ascii values already in the script (i.e. in strings)
|
108
|
+
if (_encoding > 62) $script = _escape95($script);
|
109
|
+
// create the parser
|
110
|
+
var $parser = new ParseMaster;
|
111
|
+
var $encode = _getEncoder(_encoding);
|
112
|
+
// for high-ascii, don't encode single character low-ascii
|
113
|
+
var $regexp = (_encoding > 62) ? /\w\w+/ : /\w+/;
|
114
|
+
// build the word list
|
115
|
+
$keywords = _analyze($script, _globalize($regexp), $encode);
|
116
|
+
var $encoded = $keywords.$encoded;
|
117
|
+
// encode
|
118
|
+
$parser.add($regexp, function($match, $offset) {
|
119
|
+
return $encoded[$match[$offset]];
|
120
|
+
});
|
121
|
+
// if encoded, wrap the script in a decoding function
|
122
|
+
return $script && _bootStrap($parser.exec($script), $keywords);
|
123
|
+
};
|
124
|
+
|
125
|
+
function _analyze($script, $regexp, $encode) {
|
126
|
+
// analyse
|
127
|
+
// retreive all words in the script
|
128
|
+
var $all = $script.match($regexp);
|
129
|
+
var $$sorted = []; // list of words sorted by frequency
|
130
|
+
var $$encoded = {}; // dictionary of word->encoding
|
131
|
+
var $$protected = {}; // instances of "protected" words
|
132
|
+
if ($all) {
|
133
|
+
var $unsorted = []; // same list, not sorted
|
134
|
+
var $protected = {}; // "protected" words (dictionary of word->"word")
|
135
|
+
var $values = {}; // dictionary of charCode->encoding (eg. 256->ff)
|
136
|
+
var $count = {}; // word->count
|
137
|
+
var i = $all.length, j = 0, $word;
|
138
|
+
// count the occurrences - used for sorting later
|
139
|
+
do {
|
140
|
+
$word = "$" + $all[--i];
|
141
|
+
if (!$count[$word]) {
|
142
|
+
$count[$word] = 0;
|
143
|
+
$unsorted[j] = $word;
|
144
|
+
// make a dictionary of all of the protected words in this script
|
145
|
+
// these are words that might be mistaken for encoding
|
146
|
+
$protected["$" + ($values[j] = $encode(j))] = j++;
|
147
|
+
}
|
148
|
+
// increment the word counter
|
149
|
+
$count[$word]++;
|
150
|
+
} while (i);
|
151
|
+
// prepare to sort the word list, first we must protect
|
152
|
+
// words that are also used as codes. we assign them a code
|
153
|
+
// equivalent to the word itself.
|
154
|
+
// e.g. if "do" falls within our encoding range
|
155
|
+
// then we store keywords["do"] = "do";
|
156
|
+
// this avoids problems when decoding
|
157
|
+
i = $unsorted.length;
|
158
|
+
do {
|
159
|
+
$word = $unsorted[--i];
|
160
|
+
if ($protected[$word] != null) {
|
161
|
+
$$sorted[$protected[$word]] = $word.slice(1);
|
162
|
+
$$protected[$protected[$word]] = true;
|
163
|
+
$count[$word] = 0;
|
164
|
+
}
|
165
|
+
} while (i);
|
166
|
+
// sort the words by frequency
|
167
|
+
$unsorted.sort(function($match1, $match2) {
|
168
|
+
return $count[$match2] - $count[$match1];
|
169
|
+
});
|
170
|
+
j = 0;
|
171
|
+
// because there are "protected" words in the list
|
172
|
+
// we must add the sorted words around them
|
173
|
+
do {
|
174
|
+
if ($$sorted[i] == null) $$sorted[i] = $unsorted[j++].slice(1);
|
175
|
+
$$encoded[$$sorted[i]] = $values[i];
|
176
|
+
} while (++i < $unsorted.length);
|
177
|
+
}
|
178
|
+
return {$sorted: $$sorted, $encoded: $$encoded, $protected: $$protected};
|
179
|
+
};
|
180
|
+
|
181
|
+
// build the boot function used for loading and decoding
|
182
|
+
function _bootStrap($packed, $keywords) {
|
183
|
+
var $ENCODE = _safeRegExp("$encode\\($count\\)", "g");
|
184
|
+
|
185
|
+
// $packed: the packed script
|
186
|
+
$packed = "'" + _escape($packed) + "'";
|
187
|
+
|
188
|
+
// $ascii: base for encoding
|
189
|
+
var $ascii = Math.min($keywords.$sorted.length, _encoding) || 1;
|
190
|
+
|
191
|
+
// $count: number of words contained in the script
|
192
|
+
var $count = $keywords.$sorted.length;
|
193
|
+
|
194
|
+
// $keywords: list of words contained in the script
|
195
|
+
for (var i in $keywords.$protected) $keywords.$sorted[i] = "";
|
196
|
+
// convert from a string to an array
|
197
|
+
$keywords = "'" + $keywords.$sorted.join("|") + "'.split('|')";
|
198
|
+
|
199
|
+
// $encode: encoding function (used for decoding the script)
|
200
|
+
var $encode = _encoding > 62 ? _encode95 : _getEncoder($ascii);
|
201
|
+
$encode = String($encode).replace(/_encoding/g, "$ascii").replace(/arguments\.callee/g, "$encode");
|
202
|
+
var $inline = "$count" + ($ascii > 10 ? ".toString($ascii)" : "");
|
203
|
+
|
204
|
+
// $decode: code snippet to speed up decoding
|
205
|
+
if (_fastDecode) {
|
206
|
+
// create the decoder
|
207
|
+
var $decode = _getFunctionBody(_decode);
|
208
|
+
if (_encoding > 62) $decode = $decode.replace(/\\\\w/g, "[\\xa1-\\xff]");
|
209
|
+
// perform the encoding inline for lower ascii values
|
210
|
+
else if ($ascii < 36) $decode = $decode.replace($ENCODE, $inline);
|
211
|
+
// special case: when $count==0 there are no keywords. I want to keep
|
212
|
+
// the basic shape of the unpacking funcion so i'll frig the code...
|
213
|
+
if (!$count) $decode = $decode.replace(_safeRegExp("($count)\\s*=\\s*1"), "$1=0");
|
214
|
+
}
|
215
|
+
|
216
|
+
// boot function
|
217
|
+
var $unpack = String(_unpack);
|
218
|
+
if (_fastDecode) {
|
219
|
+
// insert the decoder
|
220
|
+
$unpack = $unpack.replace(/\{/, "{" + $decode + ";");
|
221
|
+
}
|
222
|
+
$unpack = $unpack.replace(/"/g, "'");
|
223
|
+
if (_encoding > 62) { // high-ascii
|
224
|
+
// get rid of the word-boundaries for regexp matches
|
225
|
+
$unpack = $unpack.replace(/'\\\\b'\s*\+|\+\s*'\\\\b'/g, "");
|
226
|
+
}
|
227
|
+
if ($ascii > 36 || _encoding > 62 || _fastDecode) {
|
228
|
+
// insert the encode function
|
229
|
+
$unpack = $unpack.replace(/\{/, "{$encode=" + $encode + ";");
|
230
|
+
} else {
|
231
|
+
// perform the encoding inline
|
232
|
+
$unpack = $unpack.replace($ENCODE, $inline);
|
233
|
+
}
|
234
|
+
// pack the boot function too
|
235
|
+
$unpack = pack($unpack, 0, false, true);
|
236
|
+
|
237
|
+
// arguments
|
238
|
+
var $params = [$packed, $ascii, $count, $keywords];
|
239
|
+
if (_fastDecode) {
|
240
|
+
// insert placeholders for the decoder
|
241
|
+
$params = $params.concat(0, "{}");
|
242
|
+
}
|
243
|
+
|
244
|
+
// the whole thing
|
245
|
+
return "eval(" + $unpack + "(" + $params + "))\n";
|
246
|
+
};
|
247
|
+
|
248
|
+
// mmm.. ..which one do i need ??
|
249
|
+
function _getEncoder($ascii) {
|
250
|
+
return $ascii > 10 ? $ascii > 36 ? $ascii > 62 ? _encode95 : _encode62 : _encode36 : _encode10;
|
251
|
+
};
|
252
|
+
|
253
|
+
// zero encoding
|
254
|
+
// characters: 0123456789
|
255
|
+
var _encode10 = function($charCode) {
|
256
|
+
return $charCode;
|
257
|
+
};
|
258
|
+
|
259
|
+
// inherent base36 support
|
260
|
+
// characters: 0123456789abcdefghijklmnopqrstuvwxyz
|
261
|
+
var _encode36 = function($charCode) {
|
262
|
+
return $charCode.toString(36);
|
263
|
+
};
|
264
|
+
|
265
|
+
// hitch a ride on base36 and add the upper case alpha characters
|
266
|
+
// characters: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
267
|
+
var _encode62 = function($charCode) {
|
268
|
+
return ($charCode < _encoding ? '' : arguments.callee(parseInt($charCode / _encoding))) +
|
269
|
+
(($charCode = $charCode % _encoding) > 35 ? String.fromCharCode($charCode + 29) : $charCode.toString(36));
|
270
|
+
};
|
271
|
+
|
272
|
+
// use high-ascii values
|
273
|
+
var _encode95 = function($charCode) {
|
274
|
+
return ($charCode < _encoding ? '' : arguments.callee($charCode / _encoding)) +
|
275
|
+
String.fromCharCode($charCode % _encoding + 161);
|
276
|
+
};
|
277
|
+
|
278
|
+
// special _chars
|
279
|
+
var _encodePrivate = function($charCode) {
|
280
|
+
return "_" + $charCode;
|
281
|
+
};
|
282
|
+
|
283
|
+
// protect characters used by the parser
|
284
|
+
function _escape($script) {
|
285
|
+
return $script.replace(/([\\'])/g, "\\$1");
|
286
|
+
};
|
287
|
+
|
288
|
+
// protect high-ascii characters already in the script
|
289
|
+
function _escape95($script) {
|
290
|
+
return $script.replace(/[\xa1-\xff]/g, function($match) {
|
291
|
+
return "\\x" + $match.charCodeAt(0).toString(16);
|
292
|
+
});
|
293
|
+
};
|
294
|
+
|
295
|
+
function _safeRegExp($string, $flags) {
|
296
|
+
return new RegExp($string.replace(/\$/g, "\\$"), $flags);
|
297
|
+
};
|
298
|
+
|
299
|
+
// extract the body of a function
|
300
|
+
function _getFunctionBody($function) {
|
301
|
+
with (String($function)) return slice(indexOf("{") + 1, lastIndexOf("}"));
|
302
|
+
};
|
303
|
+
|
304
|
+
// set the global flag on a RegExp (you have to create a new one)
|
305
|
+
function _globalize($regexp) {
|
306
|
+
return new RegExp(String($regexp).slice(1, -1), "g");
|
307
|
+
};
|
308
|
+
|
309
|
+
// build the parsing routine
|
310
|
+
_addParser(_basicCompression);
|
311
|
+
if (_specialChars) _addParser(_encodeSpecialChars);
|
312
|
+
if (_encoding) _addParser(_encodeKeywords);
|
313
|
+
|
314
|
+
// go!
|
315
|
+
return _pack(_script);
|
316
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
importPackage(java.io);
|
2
|
+
|
3
|
+
function writeFile( file, stream ) {
|
4
|
+
var buffer = new PrintWriter( new FileWriter( file ) );
|
5
|
+
buffer.print( stream );
|
6
|
+
buffer.close();
|
7
|
+
}
|
8
|
+
|
9
|
+
function read( file ) {
|
10
|
+
var jq = new File(file);
|
11
|
+
var reader = new BufferedReader(new FileReader(jq));
|
12
|
+
var line = null;
|
13
|
+
var buffer = new java.lang.StringBuffer(jq.length());
|
14
|
+
while( (line = reader.readLine()) != null) {
|
15
|
+
buffer.append(line);
|
16
|
+
buffer.append("\n");
|
17
|
+
}
|
18
|
+
return buffer.toString();
|
19
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
tablesorter changelog
|
2
|
+
======================
|
3
|
+
http://tablesorter.com
|
4
|
+
|
5
|
+
Changes in version 2.0.3 (2008-03-17)
|
6
|
+
-------------------------------------
|
7
|
+
|
8
|
+
Bug fixes
|
9
|
+
* Missing semicolon, broke the minified version
|
10
|
+
|
11
|
+
|
12
|
+
Changes in version 2.0.2 (2008-03-14)
|
13
|
+
-------------------------------------
|
14
|
+
|
15
|
+
General
|
16
|
+
* Added support for the new metadata plugin
|
17
|
+
* Added support for jQuery 1.2.3
|
18
|
+
* Added support for decimal numbers and negative and positive digits
|
19
|
+
* Updated documenation and website with new examples
|
20
|
+
* Removed packed version.
|
21
|
+
|
22
|
+
Bug fixes
|
23
|
+
* Sort force (Thanks to David Lynch)
|
24
|
+
|
25
|
+
|
26
|
+
Changes in version 2.0.1 (2007-09-17)
|
27
|
+
-------------------------------------
|
28
|
+
|
29
|
+
General
|
30
|
+
* Removed the need for Dimensions plugin when using the pagnation plugin thanks to offset being included in the jQuery 1.2 core.
|
31
|
+
* Added support for jQuery 1.2
|
32
|
+
* Added new Minified version of tablesorter
|
33
|
+
* Updated documenation and website with new examples
|
34
|
+
|
35
|
+
Bug fixes
|
36
|
+
* If row values are identical the original order is kept (Thanks to David hull)
|
37
|
+
* If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull)
|
38
|
+
|
39
|
+
Speed improvements:
|
40
|
+
* appendToTable, setting innerHTML to "" before appending new content to table body.
|
41
|
+
* zebra widget. (Thanks to James Dempster)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<tr>
|
2
|
+
<td>Peter</td>
|
3
|
+
<td>Parker</td>
|
4
|
+
<td>28</td>
|
5
|
+
<td>$9.99</td>
|
6
|
+
<td>20%</td>
|
7
|
+
|
8
|
+
<td>Jul 6, 2006 8:14 AM</td>
|
9
|
+
</tr>
|
10
|
+
<tr>
|
11
|
+
<td>John</td>
|
12
|
+
<td>Hood</td>
|
13
|
+
<td>33</td>
|
14
|
+
<td>$19.99</td>
|
15
|
+
<td>25%</td>
|
16
|
+
|
17
|
+
<td>Dec 10, 2002 5:14 AM</td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td>Clark</td>
|
21
|
+
<td>Kent</td>
|
22
|
+
<td>18</td>
|
23
|
+
<td>$15.89</td>
|
24
|
+
<td>44%</td>
|
25
|
+
<td>Jan 12, 2003 11:14 AM</td>
|
26
|
+
</tr>
|
27
|
+
<tr>
|
28
|
+
<td>Bruce</td>
|
29
|
+
<td>Almighty</td>
|
30
|
+
<td>45</td>
|
31
|
+
<td>$153.19</td>
|
32
|
+
<td>44%</td>
|
33
|
+
|
34
|
+
<td>Jan 18, 2001 9:12 AM</td>
|
35
|
+
</tr>
|
36
|
+
<tr>
|
37
|
+
<td>Bruce</td>
|
38
|
+
<td>Evans</td>
|
39
|
+
<td>22</td>
|
40
|
+
<td>$13.19</td>
|
41
|
+
<td>11%</td>
|
42
|
+
<td>Jan 18, 2007 9:12 AM</td>
|
43
|
+
</tr>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
body,div,h1{font-family:'trebuchet ms', verdana, arial;margin:0;padding:0;}
|
2
|
+
body{background-color:#fff;color:#333;font-size:small;margin:0;padding:0;}
|
3
|
+
h1{font-size:large;font-weight:400;margin:0;}
|
4
|
+
h2{color:#333;font-size:small;font-weight:400;margin:0;}
|
5
|
+
pre{background-color:#eee;border:1px solid #ddd;border-left-width:5px;color:#333;font-size:small;overflow-x:auto;padding:15px;}
|
6
|
+
pre.normal{background-color:transparent;border:none;border-left-width:0;overflow-x:auto;}
|
7
|
+
#logo{background:url(images/jq.png);display:block;float:right;height:31px;margin-right:10px;margin-top:10px;width:110px;}
|
8
|
+
#main{margin:0 20px 20px;padding:0 15px 15px 0;}
|
9
|
+
#content{padding:20px;}
|
10
|
+
#busy{background-color:#e95555;border:1px ridge #ccc;color:#eee;display:none;padding:3px;position:absolute;right:7px;top:7px;}
|
11
|
+
hr{height:1px;}
|
12
|
+
code{font-size:108%;font-style:normal;padding:0;}
|
13
|
+
ul{color:#333;list-style:square;}
|
14
|
+
#banner{margin:20px;padding-bottom:10px;text-align:left;}
|
15
|
+
#banner *{color:#232121;font-family:Georgia, Palatino, Times New Roman;font-size:30px;font-style:normal;font-weight:400;margin:0;padding:0;}
|
16
|
+
#banner h1{display:block;float:left;}
|
17
|
+
#banner h1 em{color:#6cf;}
|
18
|
+
#banner h2{float:right;font-size:26px;margin:10px 10px -10px -10px;}
|
19
|
+
#banner h3{clear:both;display:block;font-size:12px;margin-top:-20px;}
|
20
|
+
#banner a{border-top:1px solid #888;display:block;font-size:14px;margin:5px 0 0;padding:10px 0 0;text-align:right;width:auto;}
|
21
|
+
a.external{background-image:url(../img/external.png);background-position:center right;background-repeat:no-repeat;padding-right:12px;}
|
22
|
+
form{font-size:10pt;margin-bottom:20px;width:auto;}
|
23
|
+
form fieldset{padding:10px;text-align:left;width:140px;}
|
24
|
+
div#main h1{border-bottom:1px solid #CDCDCD;display:block;margin-top:20px;padding:10px 0 2px;}
|
25
|
+
table#tablesorter-demo {margin: 10px 0 0 0;}
|
26
|
+
table#options *{font-size:small;}
|
27
|
+
p.tip em {padding: 2px; background-color: #6cf; color: #FFF;}
|
28
|
+
p.tip.update em {background-color: #FF0000;}
|
29
|
+
div.digg {float: right;}
|