iqvoc 3.3.4 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/Gemfile +14 -14
- data/Gemfile.lock +66 -53
- data/app/assets/javascripts/iqvoc/iqvoc.js +1 -1
- data/app/assets/stylesheets/framework.css +0 -2
- data/app/assets/stylesheets/iqvoc/iqvoc.css.erb +6 -0
- data/app/controllers/concepts/untranslated_controller.rb +1 -0
- data/app/models/collection/member/base.rb +2 -2
- data/app/models/concept/base.rb +1 -1
- data/app/models/concept/relation/base.rb +1 -1
- data/app/models/concept/relation/reverse_relation_extension.rb +6 -6
- data/app/models/label/base.rb +1 -1
- data/app/models/labeling/base.rb +1 -1
- data/app/models/match/base.rb +1 -1
- data/app/models/note/annotated/base.rb +1 -1
- data/app/models/note/base.rb +1 -1
- data/app/views/concepts/untranslated/index.html.erb +2 -2
- data/app/views/dashboard/index.html.erb +1 -1
- data/app/views/layouts/application.html.erb +3 -1
- data/app/views/partials/labeling/skos/_search_result.html.erb +6 -6
- data/app/views/partials/note/skos/change_note/_search_result.html.erb +9 -9
- data/app/views/search_results/index.html.erb +6 -6
- data/config/environments/development.rb +11 -10
- data/config/environments/test.rb +8 -0
- data/config/initializers/iqvoc.rb +2 -5
- data/config/initializers/secret_token.rb +0 -2
- data/db/schema.rb +9 -4
- data/iqvoc.gemspec +2 -2
- data/lib/debug.rb +14 -0
- data/lib/iqvoc/version.rb +1 -1
- data/lib/iqvoc.rb +2 -0
- data/test/integration/alphabetical_test.rb +1 -2
- data/test/integration/authentication_test.rb +1 -2
- data/test/integration/browse_concepts_and_labels_test.rb +1 -2
- data/test/integration/browse_static_pages_test.rb +1 -2
- data/test/integration/client_augmentation_test.rb +17 -1
- data/test/integration/client_edit_concept_test.rb +20 -3
- data/test/integration/collection_circularity_test.rb +2 -2
- data/test/integration/concept_test.rb +1 -2
- data/test/integration/edit_concepts_test.rb +1 -2
- data/test/integration/note_annotations_test.rb +1 -2
- data/test/integration/search_test.rb +1 -2
- data/test/integration/tree_test.rb +1 -2
- data/test/integration/untranslated_test.rb +5 -3
- data/test/integration_test_helper.rb +14 -1
- data/test/performance/browsing_test.rb +1 -1
- data/test/test_helper.rb +8 -10
- data/vendor/assets/stylesheets/blueprint/print.css +0 -4
- data/vendor/assets/stylesheets/blueprint/screen.css +0 -4
- metadata +21 -198
- data/public/assets/ajax-loader-0fa916c3be443770cc9e800077e4e9b2.gif +0 -0
- data/public/assets/ajax-loader.gif +0 -0
- data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js +0 -21
- data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
- data/public/assets/application.js +0 -21
- data/public/assets/application.js.gz +0 -0
- data/public/assets/arrow_down-5207848d1c2483637d23222d0a699bec.gif +0 -0
- data/public/assets/arrow_down.gif +0 -0
- data/public/assets/arrow_up-05112da8e77bcb5e6f0c74923d8d2046.gif +0 -0
- data/public/assets/arrow_up.gif +0 -0
- data/public/assets/back-c6339fdb1267ffad7181a80f4a8193fc.png +0 -0
- data/public/assets/back.png +0 -0
- data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css +0 -36
- data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css.gz +0 -0
- data/public/assets/blueprint/ie.css +0 -36
- data/public/assets/blueprint/ie.css.gz +0 -0
- data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css +0 -30
- data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css.gz +0 -0
- data/public/assets/blueprint/print.css +0 -30
- data/public/assets/blueprint/print.css.gz +0 -0
- data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css +0 -259
- data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css.gz +0 -0
- data/public/assets/blueprint/screen.css +0 -259
- data/public/assets/blueprint/screen.css.gz +0 -0
- data/public/assets/branch-c1c90f973cc2cd8b2d5ae7e2214fd4f7.png +0 -0
- data/public/assets/branch.png +0 -0
- data/public/assets/categ-66a10d72780bccbd3a6f196091021bbf.png +0 -0
- data/public/assets/categ.png +0 -0
- data/public/assets/categ_open-2d3546d40f05036d0e08da8cb1d0fc87.png +0 -0
- data/public/assets/categ_open.png +0 -0
- data/public/assets/file-45c18a58eafafdac404d858f4a148cd2.gif +0 -0
- data/public/assets/file.gif +0 -0
- data/public/assets/folder-3f2075b676cac310e1f9daa39fc50d54.gif +0 -0
- data/public/assets/folder-closed-c6f37b78cc35d7b09ce4115625d665c2.gif +0 -0
- data/public/assets/folder-closed.gif +0 -0
- data/public/assets/folder.gif +0 -0
- data/public/assets/footer-3b7d79bf0c4924fc68b4eaf3927a29df.png +0 -0
- data/public/assets/footer.png +0 -0
- data/public/assets/go_there-de3af0fac53cd580c5967c841ed4e996.png +0 -0
- data/public/assets/go_there.png +0 -0
- data/public/assets/header_long-4eb824a89cfbbad56dfd917e6142a5da.png +0 -0
- data/public/assets/header_long.png +0 -0
- data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css +0 -7
- data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css.gz +0 -0
- data/public/assets/iqvoc/ie_fixes.css +0 -7
- data/public/assets/iqvoc/ie_fixes.css.gz +0 -0
- data/public/assets/iqvoc-37d26e519d0a9f0f70b9edba282a0cc7.png +0 -0
- data/public/assets/iqvoc.png +0 -0
- data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-2cf4f64704121d570c8c944feecb599d.png +0 -0
- data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-8f50cdf335d64e5d9895aaec152586aa.png +0 -0
- data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-c149282e2a5d003d978b5c506282f9dd.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-8d727817e068fe9f5e68574497632df1.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-e0594ba8df95fda58e653d52b471897e.png +0 -0
- data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-f0681dc174ac10396aafaad6a1911416.png +0 -0
- data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-955df99e8d8cbf64b2994ababf68ad10.png +0 -0
- data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-69d0968ce999cafcf93f3e46387c6f57.png +0 -0
- data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/public/assets/jquery-ui/ui-icons_217bc0_256x240-6dcd65bc29c791cb800678e3d2dff52a.png +0 -0
- data/public/assets/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_2e83ff_256x240-f4ef86290cf23b605ae667668f854294.png +0 -0
- data/public/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_469bdd_256x240-7d1fb4e22e8b0406b8b539f3922df871.png +0 -0
- data/public/assets/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f956fe8d003b98a78c7cf3fd1f01b5a.png +0 -0
- data/public/assets/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-5e404740e7b81db33ff68615256381c7.png +0 -0
- data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240-4a8e8266fbe7c500dbb89f245adb380a.png +0 -0
- data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
- data/public/assets/jquery-ui/ui-icons_f9bd01_256x240-1bbe87b055494b5ffc3297ade0fd4e5d.png +0 -0
- data/public/assets/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
- data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js +0 -157
- data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
- data/public/assets/json2.js +0 -157
- data/public/assets/json2.js.gz +0 -0
- data/public/assets/leaf_end-c746324c7ae93955a71344540e19be57.png +0 -0
- data/public/assets/leaf_end.png +0 -0
- data/public/assets/leaf_end_filled-ffd6d8a1edf2b6c89140039c41c5a6c8.png +0 -0
- data/public/assets/leaf_end_filled.png +0 -0
- data/public/assets/leaf_mid-36f0aeb7d394be1f41411cc898c849ee.png +0 -0
- data/public/assets/leaf_mid.png +0 -0
- data/public/assets/leaf_mid_filled-3f929ebf2751edaa0070cf020720239e.png +0 -0
- data/public/assets/leaf_mid_filled.png +0 -0
- data/public/assets/leaf_nothing-b16696e96882b9c52fb58505c747d152.png +0 -0
- data/public/assets/leaf_nothing.png +0 -0
- data/public/assets/leaf_only-832baae54f2ac297f04345301f9b2e8b.png +0 -0
- data/public/assets/leaf_only.png +0 -0
- data/public/assets/leaf_only_filled-845d1817f13a20b80c72c9c5d109ef89.png +0 -0
- data/public/assets/leaf_only_filled.png +0 -0
- data/public/assets/leaf_top-8b0c6af753f319d658fd15305b3f72e6.png +0 -0
- data/public/assets/leaf_top.png +0 -0
- data/public/assets/leaf_top_filled-46854fbdb9a9d53519587ebcf883fdf2.png +0 -0
- data/public/assets/leaf_top_filled.png +0 -0
- data/public/assets/manifest-6f0772f7ec93cc20de428ae859353e92.js +0 -21
- data/public/assets/manifest-6f0772f7ec93cc20de428ae859353e92.js.gz +0 -0
- data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css +0 -1126
- data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css.gz +0 -0
- data/public/assets/manifest-d52be2520b68121c73695e4026876a98.css +0 -1421
- data/public/assets/manifest-d52be2520b68121c73695e4026876a98.css.gz +0 -0
- data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js +0 -21
- data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
- data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css +0 -45
- data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css.gz +0 -0
- data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js +0 -157
- data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
- data/public/assets/manifest-ie.css +0 -45
- data/public/assets/manifest-ie.css.gz +0 -0
- data/public/assets/manifest-ie.js +0 -157
- data/public/assets/manifest-ie.js.gz +0 -0
- data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css +0 -32
- data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css.gz +0 -0
- data/public/assets/manifest-print.css +0 -32
- data/public/assets/manifest-print.css.gz +0 -0
- data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css +0 -261
- data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css.gz +0 -0
- data/public/assets/manifest-screen.css +0 -261
- data/public/assets/manifest-screen.css.gz +0 -0
- data/public/assets/manifest.css +0 -1421
- data/public/assets/manifest.css.gz +0 -0
- data/public/assets/manifest.js +0 -21
- data/public/assets/manifest.js.gz +0 -0
- data/public/assets/manifest.yml +0 -67
- data/public/assets/minus-b2a188eb9c79e297cf226940d274bde3.gif +0 -0
- data/public/assets/minus.gif +0 -0
- data/public/assets/nothing-13356bee8ae7be80ca9e2b12437ec11b.png +0 -0
- data/public/assets/nothing.png +0 -0
- data/public/assets/ok-b470e6ad2a51f8d831337bcdceac81b3.png +0 -0
- data/public/assets/ok.png +0 -0
- data/public/assets/plus-48a82f482680dc6a40b228c598f7737a.gif +0 -0
- data/public/assets/plus.gif +0 -0
- data/public/assets/rdf_flyer-2c03ecea52ac7c51ea052214ec51cf41.gif +0 -0
- data/public/assets/rdf_flyer.gif +0 -0
- data/public/assets/red_arrow-bd4018c221ad0d64ff39591301978985.png +0 -0
- data/public/assets/red_arrow.png +0 -0
- data/public/assets/shadow-e8b8808c02efb04cd6dd03cb60b1df51.png +0 -0
- data/public/assets/shadow.png +0 -0
- data/public/assets/spinner-376ad78a3c6a4731a4d08e6a7a958a08.gif +0 -0
- data/public/assets/spinner.gif +0 -0
- data/public/assets/tokenizer_delete-9fcf87a2460fd26e1d06694a674c64fd.png +0 -0
- data/public/assets/tokenizer_delete.png +0 -0
- data/public/assets/tokenizer_pencile-0ce94776c0a1a2f26de102be8d93e01f.png +0 -0
- data/public/assets/tokenizer_pencile.png +0 -0
- data/public/assets/tokenizer_show-3e3b535ad0047218c41a67bab0bde5a1.png +0 -0
- data/public/assets/tokenizer_show.png +0 -0
- data/public/assets/top_01-20317bcf2744bf21f09646edf1db83e3.png +0 -0
- data/public/assets/top_01.png +0 -0
- data/public/assets/treeview-black-b9efd44ad2274dd1a755680f05c97190.gif +0 -0
- data/public/assets/treeview-black-line-c017011af5be73fb837016e0a7548275.gif +0 -0
- data/public/assets/treeview-black-line.gif +0 -0
- data/public/assets/treeview-black.gif +0 -0
- data/public/assets/treeview-default-aa27b2f289c0f4e17c9848db92b7efc7.gif +0 -0
- data/public/assets/treeview-default-line-88dfb2ce9ef6ce0b6728e9b8b625dc56.gif +0 -0
- data/public/assets/treeview-default-line.gif +0 -0
- data/public/assets/treeview-default.gif +0 -0
- data/public/assets/treeview-famfamfam-e4842329994e3a6650a61aa96b744c88.gif +0 -0
- data/public/assets/treeview-famfamfam-line-f36551e5105684a46193f6723fe9dd02.gif +0 -0
- data/public/assets/treeview-famfamfam-line.gif +0 -0
- data/public/assets/treeview-famfamfam.gif +0 -0
- data/public/assets/treeview-gray-7725ad8dad103df1dddd282e8b76ad38.gif +0 -0
- data/public/assets/treeview-gray-line-139b3c730f3ea071ee459da1c97ceddb.gif +0 -0
- data/public/assets/treeview-gray-line.gif +0 -0
- data/public/assets/treeview-gray.gif +0 -0
- data/public/assets/treeview-red-abf293cd5d1fe415f8c11bd96936f8e4.gif +0 -0
- data/public/assets/treeview-red-line-1a93b70ab4c8e3cd5982e91e9def3afe.gif +0 -0
- data/public/assets/treeview-red-line.gif +0 -0
- data/public/assets/treeview-red.gif +0 -0
- data/public/assets/trunk-608b3757340ea0e291ef7bae37739530.png +0 -0
- data/public/assets/trunk.png +0 -0
- data/public/assets/unfinished-7f5796d43fa537f8e16caddaf0ba759b.png +0 -0
- data/public/assets/unfinished.png +0 -0
- data/public/stylesheets/iqvoc/ie_fixes.css +0 -6
Binary file
|
data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-c149282e2a5d003d978b5c506282f9dd.png
DELETED
Binary file
|
Binary file
|
data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-8d727817e068fe9f5e68574497632df1.png
DELETED
Binary file
|
Binary file
|
data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-e0594ba8df95fda58e653d52b471897e.png
DELETED
Binary file
|
Binary file
|
data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-f0681dc174ac10396aafaad6a1911416.png
DELETED
Binary file
|
Binary file
|
data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-955df99e8d8cbf64b2994ababf68ad10.png
DELETED
Binary file
|
Binary file
|
data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-69d0968ce999cafcf93f3e46387c6f57.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,157 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
http://www.JSON.org/json2.js
|
3
|
-
2011-02-23
|
4
|
-
|
5
|
-
Public Domain.
|
6
|
-
|
7
|
-
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
8
|
-
|
9
|
-
See http://www.JSON.org/js.html
|
10
|
-
|
11
|
-
|
12
|
-
This code should be minified before deployment.
|
13
|
-
See http://javascript.crockford.com/jsmin.html
|
14
|
-
|
15
|
-
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
16
|
-
NOT CONTROL.
|
17
|
-
|
18
|
-
|
19
|
-
This file creates a global JSON object containing two methods: stringify
|
20
|
-
and parse.
|
21
|
-
|
22
|
-
JSON.stringify(value, replacer, space)
|
23
|
-
value any JavaScript value, usually an object or array.
|
24
|
-
|
25
|
-
replacer an optional parameter that determines how object
|
26
|
-
values are stringified for objects. It can be a
|
27
|
-
function or an array of strings.
|
28
|
-
|
29
|
-
space an optional parameter that specifies the indentation
|
30
|
-
of nested structures. If it is omitted, the text will
|
31
|
-
be packed without extra whitespace. If it is a number,
|
32
|
-
it will specify the number of spaces to indent at each
|
33
|
-
level. If it is a string (such as '\t' or ' '),
|
34
|
-
it contains the characters used to indent at each level.
|
35
|
-
|
36
|
-
This method produces a JSON text from a JavaScript value.
|
37
|
-
|
38
|
-
When an object value is found, if the object contains a toJSON
|
39
|
-
method, its toJSON method will be called and the result will be
|
40
|
-
stringified. A toJSON method does not serialize: it returns the
|
41
|
-
value represented by the name/value pair that should be serialized,
|
42
|
-
or undefined if nothing should be serialized. The toJSON method
|
43
|
-
will be passed the key associated with the value, and this will be
|
44
|
-
bound to the value
|
45
|
-
|
46
|
-
For example, this would serialize Dates as ISO strings.
|
47
|
-
|
48
|
-
Date.prototype.toJSON = function (key) {
|
49
|
-
function f(n) {
|
50
|
-
// Format integers to have at least two digits.
|
51
|
-
return n < 10 ? '0' + n : n;
|
52
|
-
}
|
53
|
-
|
54
|
-
return this.getUTCFullYear() + '-' +
|
55
|
-
f(this.getUTCMonth() + 1) + '-' +
|
56
|
-
f(this.getUTCDate()) + 'T' +
|
57
|
-
f(this.getUTCHours()) + ':' +
|
58
|
-
f(this.getUTCMinutes()) + ':' +
|
59
|
-
f(this.getUTCSeconds()) + 'Z';
|
60
|
-
};
|
61
|
-
|
62
|
-
You can provide an optional replacer method. It will be passed the
|
63
|
-
key and value of each member, with this bound to the containing
|
64
|
-
object. The value that is returned from your method will be
|
65
|
-
serialized. If your method returns undefined, then the member will
|
66
|
-
be excluded from the serialization.
|
67
|
-
|
68
|
-
If the replacer parameter is an array of strings, then it will be
|
69
|
-
used to select the members to be serialized. It filters the results
|
70
|
-
such that only members with keys listed in the replacer array are
|
71
|
-
stringified.
|
72
|
-
|
73
|
-
Values that do not have JSON representations, such as undefined or
|
74
|
-
functions, will not be serialized. Such values in objects will be
|
75
|
-
dropped; in arrays they will be replaced with null. You can use
|
76
|
-
a replacer function to replace those with JSON values.
|
77
|
-
JSON.stringify(undefined) returns undefined.
|
78
|
-
|
79
|
-
The optional space parameter produces a stringification of the
|
80
|
-
value that is filled with line breaks and indentation to make it
|
81
|
-
easier to read.
|
82
|
-
|
83
|
-
If the space parameter is a non-empty string, then that string will
|
84
|
-
be used for indentation. If the space parameter is a number, then
|
85
|
-
the indentation will be that many spaces.
|
86
|
-
|
87
|
-
Example:
|
88
|
-
|
89
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
90
|
-
// text is '["e",{"pluribus":"unum"}]'
|
91
|
-
|
92
|
-
|
93
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
94
|
-
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
95
|
-
|
96
|
-
text = JSON.stringify([new Date()], function (key, value) {
|
97
|
-
return this[key] instanceof Date ?
|
98
|
-
'Date(' + this[key] + ')' : value;
|
99
|
-
});
|
100
|
-
// text is '["Date(---current time---)"]'
|
101
|
-
|
102
|
-
|
103
|
-
JSON.parse(text, reviver)
|
104
|
-
This method parses a JSON text to produce an object or array.
|
105
|
-
It can throw a SyntaxError exception.
|
106
|
-
|
107
|
-
The optional reviver parameter is a function that can filter and
|
108
|
-
transform the results. It receives each of the keys and values,
|
109
|
-
and its return value is used instead of the original value.
|
110
|
-
If it returns what it received, then the structure is not modified.
|
111
|
-
If it returns undefined then the member is deleted.
|
112
|
-
|
113
|
-
Example:
|
114
|
-
|
115
|
-
// Parse the text. Values that look like ISO date strings will
|
116
|
-
// be converted to Date objects.
|
117
|
-
|
118
|
-
myData = JSON.parse(text, function (key, value) {
|
119
|
-
var a;
|
120
|
-
if (typeof value === 'string') {
|
121
|
-
a =
|
122
|
-
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
123
|
-
if (a) {
|
124
|
-
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
125
|
-
+a[5], +a[6]));
|
126
|
-
}
|
127
|
-
}
|
128
|
-
return value;
|
129
|
-
});
|
130
|
-
|
131
|
-
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
132
|
-
var d;
|
133
|
-
if (typeof value === 'string' &&
|
134
|
-
value.slice(0, 5) === 'Date(' &&
|
135
|
-
value.slice(-1) === ')') {
|
136
|
-
d = new Date(value.slice(5, -1));
|
137
|
-
if (d) {
|
138
|
-
return d;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
return value;
|
142
|
-
});
|
143
|
-
|
144
|
-
|
145
|
-
This is a reference implementation. You are free to copy, modify, or
|
146
|
-
redistribute.
|
147
|
-
*/
|
148
|
-
/*jslint evil: true, strict: false, regexp: false */
|
149
|
-
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
150
|
-
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
151
|
-
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
|
152
|
-
lastIndex, length, parse, prototype, push, replace, slice, stringify,
|
153
|
-
test, toJSON, toString, valueOf
|
154
|
-
*/
|
155
|
-
// Create a JSON object only if one does not already exist. We create the
|
156
|
-
// methods in a closure to avoid creating global variables.
|
157
|
-
var JSON;JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()
|
Binary file
|
data/public/assets/json2.js
DELETED
@@ -1,157 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
http://www.JSON.org/json2.js
|
3
|
-
2011-02-23
|
4
|
-
|
5
|
-
Public Domain.
|
6
|
-
|
7
|
-
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
8
|
-
|
9
|
-
See http://www.JSON.org/js.html
|
10
|
-
|
11
|
-
|
12
|
-
This code should be minified before deployment.
|
13
|
-
See http://javascript.crockford.com/jsmin.html
|
14
|
-
|
15
|
-
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
16
|
-
NOT CONTROL.
|
17
|
-
|
18
|
-
|
19
|
-
This file creates a global JSON object containing two methods: stringify
|
20
|
-
and parse.
|
21
|
-
|
22
|
-
JSON.stringify(value, replacer, space)
|
23
|
-
value any JavaScript value, usually an object or array.
|
24
|
-
|
25
|
-
replacer an optional parameter that determines how object
|
26
|
-
values are stringified for objects. It can be a
|
27
|
-
function or an array of strings.
|
28
|
-
|
29
|
-
space an optional parameter that specifies the indentation
|
30
|
-
of nested structures. If it is omitted, the text will
|
31
|
-
be packed without extra whitespace. If it is a number,
|
32
|
-
it will specify the number of spaces to indent at each
|
33
|
-
level. If it is a string (such as '\t' or ' '),
|
34
|
-
it contains the characters used to indent at each level.
|
35
|
-
|
36
|
-
This method produces a JSON text from a JavaScript value.
|
37
|
-
|
38
|
-
When an object value is found, if the object contains a toJSON
|
39
|
-
method, its toJSON method will be called and the result will be
|
40
|
-
stringified. A toJSON method does not serialize: it returns the
|
41
|
-
value represented by the name/value pair that should be serialized,
|
42
|
-
or undefined if nothing should be serialized. The toJSON method
|
43
|
-
will be passed the key associated with the value, and this will be
|
44
|
-
bound to the value
|
45
|
-
|
46
|
-
For example, this would serialize Dates as ISO strings.
|
47
|
-
|
48
|
-
Date.prototype.toJSON = function (key) {
|
49
|
-
function f(n) {
|
50
|
-
// Format integers to have at least two digits.
|
51
|
-
return n < 10 ? '0' + n : n;
|
52
|
-
}
|
53
|
-
|
54
|
-
return this.getUTCFullYear() + '-' +
|
55
|
-
f(this.getUTCMonth() + 1) + '-' +
|
56
|
-
f(this.getUTCDate()) + 'T' +
|
57
|
-
f(this.getUTCHours()) + ':' +
|
58
|
-
f(this.getUTCMinutes()) + ':' +
|
59
|
-
f(this.getUTCSeconds()) + 'Z';
|
60
|
-
};
|
61
|
-
|
62
|
-
You can provide an optional replacer method. It will be passed the
|
63
|
-
key and value of each member, with this bound to the containing
|
64
|
-
object. The value that is returned from your method will be
|
65
|
-
serialized. If your method returns undefined, then the member will
|
66
|
-
be excluded from the serialization.
|
67
|
-
|
68
|
-
If the replacer parameter is an array of strings, then it will be
|
69
|
-
used to select the members to be serialized. It filters the results
|
70
|
-
such that only members with keys listed in the replacer array are
|
71
|
-
stringified.
|
72
|
-
|
73
|
-
Values that do not have JSON representations, such as undefined or
|
74
|
-
functions, will not be serialized. Such values in objects will be
|
75
|
-
dropped; in arrays they will be replaced with null. You can use
|
76
|
-
a replacer function to replace those with JSON values.
|
77
|
-
JSON.stringify(undefined) returns undefined.
|
78
|
-
|
79
|
-
The optional space parameter produces a stringification of the
|
80
|
-
value that is filled with line breaks and indentation to make it
|
81
|
-
easier to read.
|
82
|
-
|
83
|
-
If the space parameter is a non-empty string, then that string will
|
84
|
-
be used for indentation. If the space parameter is a number, then
|
85
|
-
the indentation will be that many spaces.
|
86
|
-
|
87
|
-
Example:
|
88
|
-
|
89
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
90
|
-
// text is '["e",{"pluribus":"unum"}]'
|
91
|
-
|
92
|
-
|
93
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
94
|
-
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
95
|
-
|
96
|
-
text = JSON.stringify([new Date()], function (key, value) {
|
97
|
-
return this[key] instanceof Date ?
|
98
|
-
'Date(' + this[key] + ')' : value;
|
99
|
-
});
|
100
|
-
// text is '["Date(---current time---)"]'
|
101
|
-
|
102
|
-
|
103
|
-
JSON.parse(text, reviver)
|
104
|
-
This method parses a JSON text to produce an object or array.
|
105
|
-
It can throw a SyntaxError exception.
|
106
|
-
|
107
|
-
The optional reviver parameter is a function that can filter and
|
108
|
-
transform the results. It receives each of the keys and values,
|
109
|
-
and its return value is used instead of the original value.
|
110
|
-
If it returns what it received, then the structure is not modified.
|
111
|
-
If it returns undefined then the member is deleted.
|
112
|
-
|
113
|
-
Example:
|
114
|
-
|
115
|
-
// Parse the text. Values that look like ISO date strings will
|
116
|
-
// be converted to Date objects.
|
117
|
-
|
118
|
-
myData = JSON.parse(text, function (key, value) {
|
119
|
-
var a;
|
120
|
-
if (typeof value === 'string') {
|
121
|
-
a =
|
122
|
-
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
123
|
-
if (a) {
|
124
|
-
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
125
|
-
+a[5], +a[6]));
|
126
|
-
}
|
127
|
-
}
|
128
|
-
return value;
|
129
|
-
});
|
130
|
-
|
131
|
-
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
132
|
-
var d;
|
133
|
-
if (typeof value === 'string' &&
|
134
|
-
value.slice(0, 5) === 'Date(' &&
|
135
|
-
value.slice(-1) === ')') {
|
136
|
-
d = new Date(value.slice(5, -1));
|
137
|
-
if (d) {
|
138
|
-
return d;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
return value;
|
142
|
-
});
|
143
|
-
|
144
|
-
|
145
|
-
This is a reference implementation. You are free to copy, modify, or
|
146
|
-
redistribute.
|
147
|
-
*/
|
148
|
-
/*jslint evil: true, strict: false, regexp: false */
|
149
|
-
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
150
|
-
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
151
|
-
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
|
152
|
-
lastIndex, length, parse, prototype, push, replace, slice, stringify,
|
153
|
-
test, toJSON, toString, valueOf
|
154
|
-
*/
|
155
|
-
// Create a JSON object only if one does not already exist. We create the
|
156
|
-
// methods in a closure to avoid creating global variables.
|
157
|
-
var JSON;JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()
|
data/public/assets/json2.js.gz
DELETED
Binary file
|
Binary file
|
data/public/assets/leaf_end.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/assets/leaf_mid.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/assets/leaf_only.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/assets/leaf_top.png
DELETED
Binary file
|
Binary file
|
Binary file
|