Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
2b2b96de
Commit
2b2b96de
authored
Jan 14, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add jquery-json Plugin 2.4.
parent
95c7a1ff
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
357 additions
and
0 deletions
+357
-0
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json.xml
...plateItem/portal_skins/erp5_jquery/jquery/plugin/json.xml
+26
-0
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json/jquery.json.js.xml
...l_skins/erp5_jquery/jquery/plugin/json/jquery.json.js.xml
+247
-0
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json/jquery.json.min.js.xml
...ins/erp5_jquery/jquery/plugin/json/jquery.json.min.js.xml
+70
-0
bt5/erp5_jquery_plugin_json/bt/change_log
bt5/erp5_jquery_plugin_json/bt/change_log
+2
-0
bt5/erp5_jquery_plugin_json/bt/copyright_list
bt5/erp5_jquery_plugin_json/bt/copyright_list
+1
-0
bt5/erp5_jquery_plugin_json/bt/dependency_list
bt5/erp5_jquery_plugin_json/bt/dependency_list
+1
-0
bt5/erp5_jquery_plugin_json/bt/description
bt5/erp5_jquery_plugin_json/bt/description
+2
-0
bt5/erp5_jquery_plugin_json/bt/license
bt5/erp5_jquery_plugin_json/bt/license
+1
-0
bt5/erp5_jquery_plugin_json/bt/maintainer_list
bt5/erp5_jquery_plugin_json/bt/maintainer_list
+1
-0
bt5/erp5_jquery_plugin_json/bt/revision
bt5/erp5_jquery_plugin_json/bt/revision
+1
-0
bt5/erp5_jquery_plugin_json/bt/template_format_version
bt5/erp5_jquery_plugin_json/bt/template_format_version
+1
-0
bt5/erp5_jquery_plugin_json/bt/template_path_list
bt5/erp5_jquery_plugin_json/bt/template_path_list
+2
-0
bt5/erp5_jquery_plugin_json/bt/title
bt5/erp5_jquery_plugin_json/bt/title
+1
-0
bt5/erp5_jquery_plugin_json/bt/version
bt5/erp5_jquery_plugin_json/bt/version
+1
-0
No files found.
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json.xml
0 → 100644
View file @
2b2b96de
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
json
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json/jquery.json.js.xml
0 → 100644
View file @
2b2b96de
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts58170054.11
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
jquery.json.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
data
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/**\n
* jQuery JSON plugin 2.4.0\n
*\n
* @author Brantley Harris, 2009-2011\n
* @author Timo Tijhof, 2011-2012\n
* @source This plugin is heavily influenced by MochiKit\'s serializeJSON, which is\n
* copyrighted 2005 by Bob Ippolito.\n
* @source Brantley Harris wrote this plugin. It is based somewhat on the JSON.org\n
* website\'s http://www.json.org/json2.js, which proclaims:\n
* "NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", a sentiment that\n
* I uphold.\n
* @license MIT License <http://www.opensource.org/licenses/mit-license.php>
\n
*/\n
(function ($) {\n
\t\'use strict\';\n
\n
\tvar escape = /["\\\\\\x00-\\x1f\\x7f-\\x9f]/g,\n
\t\tmeta = {\n
\t\t\t\'\\b\': \'\\\\b\',\n
\t\t\t\'\\t\': \'\\\\t\',\n
\t\t\t\'\\n\': \'\\\\n\',\n
\t\t\t\'\\f\': \'\\\\f\',\n
\t\t\t\'\\r\': \'\\\\r\',\n
\t\t\t\'"\' : \'\\\\"\',\n
\t\t\t\'\\\\\': \'\\\\\\\\\'\n
\t\t},\n
\t\thasOwn = Object.prototype.hasOwnProperty;\n
\n
\t/**\n
\t * jQuery.toJSON\n
\t * Converts the given argument into a JSON representation.\n
\t *\n
\t * @param o {Mixed} The json-serializable *thing* to be converted\n
\t *\n
\t * If an object has a toJSON prototype, that will be used to get the representation.\n
\t * Non-integer/string keys are skipped in the object, as are keys that point to a\n
\t * function.\n
\t *\n
\t */\n
\t$.toJSON = typeof JSON === \'object\'
&&
JSON.stringify ? JSON.stringify : function (o) {\n
\t\tif (o === null) {\n
\t\t\treturn \'null\';\n
\t\t}\n
\n
\t\tvar pairs, k, name, val,\n
\t\t\ttype = $.type(o);\n
\n
\t\tif (type === \'undefined\') {\n
\t\t\treturn undefined;\n
\t\t}\n
\n
\t\t// Also covers instantiated Number and Boolean objects,\n
\t\t// which are typeof \'object\' but thanks to $.type, we\n
\t\t// catch them here. I don\'t know whether it is right\n
\t\t// or wrong that instantiated primitives are not\n
\t\t// exported to JSON as an {"object":..}.\n
\t\t// We choose this path because that\'s what the browsers did.\n
\t\tif (type === \'number\' || type === \'boolean\') {\n
\t\t\treturn String(o);\n
\t\t}\n
\t\tif (type === \'string\') {\n
\t\t\treturn $.quoteString(o);\n
\t\t}\n
\t\tif (typeof o.toJSON === \'function\') {\n
\t\t\treturn $.toJSON(o.toJSON());\n
\t\t}\n
\t\tif (type === \'date\') {\n
\t\t\tvar month = o.getUTCMonth() + 1,\n
\t\t\t\tday = o.getUTCDate(),\n
\t\t\t\tyear = o.getUTCFullYear(),\n
\t\t\t\thours = o.getUTCHours(),\n
\t\t\t\tminutes = o.getUTCMinutes(),\n
\t\t\t\tseconds = o.getUTCSeconds(),\n
\t\t\t\tmilli = o.getUTCMilliseconds();\n
\n
\t\t\tif (month
< 10
)
{\n
\t\t\t\
tmonth =
\'0\'
+
month;\n
\t\t\t}\n
\t\t\tif
(day
<
10)
{\n
\t\t\t\
tday =
\'0\'
+
day;\n
\t\t\t}\n
\t\t\tif
(hours
<
10)
{\n
\t\t\t\
thours =
\'0\'
+
hours;\n
\t\t\t}\n
\t\t\tif
(minutes
<
10)
{\n
\t\t\t\
tminutes =
\'0\'
+
minutes;\n
\t\t\t}\n
\t\t\tif
(seconds
<
10)
{\n
\t\t\t\
tseconds =
\'0\'
+
seconds;\n
\t\t\t}\n
\t\t\tif
(milli
<
100)
{\n
\t\t\t\
tmilli =
\'0\'
+
milli;\n
\t\t\t}\n
\t\t\tif
(milli
<
10)
{\n
\t\t\t\
tmilli =
\'0\'
+
milli;\n
\t\t\t}\n
\t\t\treturn
\'"\'
+
year
+
\'-\'
+
month
+
\'-\'
+
day
+
\'T\'
+\n
\t\t\t\thours
+
\':\'
+
minutes
+
\':\'
+
seconds
+\n
\t\t\t\t\'.\'
+
milli
+
\'Z"\';\n
\t\t}\n
\n
\t\
tpairs =
[];\n
\n
\t\tif
($.isArray(o))
{\n
\t\t\tfor
(
k =
0;
k
<
o.length;
k++)
{\n
\t\t\t\tpairs.push($.toJSON(o[k])
||
\'null\');\n
\t\t\t}\n
\t\t\treturn
\'[\'
+
pairs.join(\',\')
+
\']\';\n
\t\t}\n
\n
\t\t//
Any
other
object
(plain
object,
RegExp,
..)\n
\t\t//
Need
to
do
typeof
instead
of
$.type,
because
we
also\n
\t\t//
want
to
catch
non-plain
objects.\n
\t\tif
(typeof
o =
==
\'object\')
{\n
\t\t\tfor
(k
in
o)
{\n
\t\t\t\t//
Only
include
own
properties,\n
\t\t\t\t//
Filter
out
inherited
prototypes\n
\t\t\t\tif
(hasOwn.call(o,
k))
{\n
\t\t\t\t\t//
Keys
must
be
numerical
or
string.
Skip
others\n
\t\t\t\t\
ttype =
typeof
k;\n
\t\t\t\t\tif
(
type =
==
\'number\')
{\n
\t\t\t\t\t\
tname =
\'"\'
+
k
+
\'"\';\n
\t\t\t\t\t}
else
if
(
type =
==
\'string\')
{\n
\t\t\t\t\t\
tname =
$.quoteString(k);\n
\t\t\t\t\t}
else
{\n
\t\t\t\t\t\tcontinue;\n
\t\t\t\t\t}\n
\t\t\t\t\
ttype =
typeof
o[k];\n
\n
\t\t\t\t\t//
Invalid
values
like
these
return
undefined\n
\t\t\t\t\t//
from
toJSON,
however
those
object
members\n
\t\t\t\t\t//
shouldn\'t
be
included
in
the
JSON
string
at
all.\n
\t\t\t\t\tif
(type
!==
\'function\'
&&
type
!==
\'undefined\')
{\n
\t\t\t\t\t\
tval =
$.toJSON(o[k]);\n
\t\t\t\t\t\tpairs.push(name
+
\':\'
+
val);\n
\t\t\t\t\t}\n
\t\t\t\t}\n
\t\t\t}\n
\t\t\treturn
\'{\'
+
pairs.join(\',\')
+
\'}\';\n
\t\t}\n
\t};\n
\n
\t/**\n
\t
*
jQuery.evalJSON\n
\t
*
Evaluates
a
given
json
string.\n
\t
*\n
\t
*
@param
str
{String}\n
\t
*/\n
\t$
.evalJSON =
typeof
JSON =
==
\'object\'
&&
JSON.parse
?
JSON.parse
:
function
(str)
{\n
\t\t/*jshint
evil:
true
*/\n
\t\treturn
eval(\'(\'
+
str
+
\')\');\n
\t};\n
\n
\t/**\n
\t
*
jQuery.secureEvalJSON\n
\t
*
Evals
JSON
in
a
way
that
is
*more*
secure.\n
\t
*\n
\t
*
@param
str
{String}\n
\t
*/\n
\t$
.secureEvalJSON =
typeof
JSON =
==
\'object\'
&&
JSON.parse
?
JSON.parse
:
function
(str)
{\n
\t\tvar
filtered =
\n
\t\t\tstr\n
\t\t\t.replace(/\\\\["\\\\\\/bfnrtu]/g,
\'@\')\n
\t\t\t.replace(/"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,
\']\')\n
\t\t\t.replace(/(?:^|:|,)(?:\\s*\\[)+/g,
\'\');\n
\n
\t\tif
(/^[\\],:{}\\s]*$/.test(filtered))
{\n
\t\t\t/*jshint
evil:
true
*/\n
\t\t\treturn
eval(\'(\'
+
str
+
\')\');\n
\t\t}\n
\t\tthrow
new
SyntaxError(\'Error
parsing
JSON,
source
is
not
valid.\');\n
\t};\n
\n
\t/**\n
\t
*
jQuery.quoteString\n
\t
*
Returns
a
string-repr
of
a
string,
escaping
quotes
intelligently.\n
\t
*
Mostly
a
support
function
for
toJSON.\n
\t
*
Examples:\n
\t
*
>
>> jQuery.quoteString(\'apple\')\n
\t * "apple"\n
\t *\n
\t * >>> jQuery.quoteString(\'"Where are we going?", she asked.\')\n
\t * "\\"Where are we going?\\", she asked."\n
\t */\n
\t$.quoteString = function (str) {\n
\t\tif (str.match(escape)) {\n
\t\t\treturn \'"\' + str.replace(escape, function (a) {\n
\t\t\t\tvar c = meta[a];\n
\t\t\t\tif (typeof c === \'string\') {\n
\t\t\t\t\treturn c;\n
\t\t\t\t}\n
\t\t\t\tc = a.charCodeAt();\n
\t\t\t\treturn \'\\\\u00\' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);\n
\t\t\t}) + \'"\';\n
\t\t}\n
\t\treturn \'"\' + str + \'"\';\n
\t};\n
\n
}(jQuery));\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
5230
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jquery_plugin_json/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/json/jquery.json.min.js.xml
0 → 100644
View file @
2b2b96de
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts58170082.7
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
jquery.json.min.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
data
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*! jQuery JSON plugin 2.4.0 | code.google.com/p/jquery-json */\n
(function($){\'use strict\';var escape=/["\\\\\\x00-\\x1f\\x7f-\\x9f]/g,meta={\'\\b\':\'\\\\b\',\'\\t\':\'\\\\t\',\'\\n\':\'\\\\n\',\'\\f\':\'\\\\f\',\'\\r\':\'\\\\r\',\'"\':\'\\\\"\',\'\\\\\':\'\\\\\\\\\'},hasOwn=Object.prototype.hasOwnProperty;$.toJSON=typeof JSON===\'object\'&&JSON.stringify?JSON.stringify:function(o){if(o===null){return\'null\';}\n
var pairs,k,name,val,type=$.type(o);if(type===\'undefined\'){return undefined;}\n
if(type===\'number\'||type===\'boolean\'){return String(o);}\n
if(type===\'string\'){return $.quoteString(o);}\n
if(typeof o.toJSON===\'function\'){return $.toJSON(o.toJSON());}\n
if(type===\'date\'){var month=o.getUTCMonth()+1,day=o.getUTCDate(),year=o.getUTCFullYear(),hours=o.getUTCHours(),minutes=o.getUTCMinutes(),seconds=o.getUTCSeconds(),milli=o.getUTCMilliseconds();if(month<10){month=\'0\'+month;}\n
if(day<10){day=\'0\'+day;}\n
if(hours<10){hours=\'0\'+hours;}\n
if(minutes<10){minutes=\'0\'+minutes;}\n
if(seconds<10){seconds=\'0\'+seconds;}\n
if(milli<100){milli=\'0\'+milli;}\n
if(milli<10){milli=\'0\'+milli;}\n
return\'"\'+year+\'-\'+month+\'-\'+day+\'T\'+\n
hours+\':\'+minutes+\':\'+seconds+\'.\'+milli+\'Z"\';}\n
pairs=[];if($.isArray(o)){for(k=0;k<o.length;k++){pairs.push($.toJSON(o[k])||\'null\');}\n
return\'[\'+pairs.join(\',\')+\']\';}\n
if(typeof o===\'object\'){for(k in o){if(hasOwn.call(o,k)){type=typeof k;if(type===\'number\'){name=\'"\'+k+\'"\';}else if(type===\'string\'){name=$.quoteString(k);}else{continue;}\n
type=typeof o[k];if(type!==\'function\'&&type!==\'undefined\'){val=$.toJSON(o[k]);pairs.push(name+\':\'+val);}}}\n
return\'{\'+pairs.join(\',\')+\'}\';}};$.evalJSON=typeof JSON===\'object\'&&JSON.parse?JSON.parse:function(str){return eval(\'(\'+str+\')\');};$.secureEvalJSON=typeof JSON===\'object\'&&JSON.parse?JSON.parse:function(str){var filtered=str.replace(/\\\\["\\\\\\/bfnrtu]/g,\'@\').replace(/"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,\']\').replace(/(?:^|:|,)(?:\\s*\\[)+/g,\'\');if(/^[\\],:{}\\s]*$/.test(filtered)){return eval(\'(\'+str+\')\');}\n
throw new SyntaxError(\'Error parsing JSON, source is not valid.\');};$.quoteString=function(str){if(str.match(escape)){return\'"\'+str.replace(escape,function(a){var c=meta[a];if(typeof c===\'string\'){return c;}\n
c=a.charCodeAt();return\'\\\\u00\'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+\'"\';}\n
return\'"\'+str+\'"\';};}(jQuery));
]]>
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
2259
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jquery_plugin_json/bt/change_log
0 → 100644
View file @
2b2b96de
2013-01-14 Kazuhiko
* initial commit
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/copyright_list
0 → 100644
View file @
2b2b96de
2013 © Nexedi SA
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/dependency_list
0 → 100644
View file @
2b2b96de
erp5_jquery
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/description
0 → 100644
View file @
2b2b96de
This Business Template contains only static files of jquery-json Plugin 2.4.
* https://code.google.com/p/jquery-json/
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/license
0 → 100644
View file @
2b2b96de
MIT
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/maintainer_list
0 → 100644
View file @
2b2b96de
kazuhiko
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/revision
0 → 100644
View file @
2b2b96de
1
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/template_format_version
0 → 100644
View file @
2b2b96de
1
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/template_path_list
0 → 100644
View file @
2b2b96de
portal_skins/erp5_jquery/jquery/plugin/json
portal_skins/erp5_jquery/jquery/plugin/json/**
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/title
0 → 100644
View file @
2b2b96de
erp5_jquery_plugin_json
\ No newline at end of file
bt5/erp5_jquery_plugin_json/bt/version
0 → 100644
View file @
2b2b96de
5.4.7
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment