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
c2daeddf
Commit
c2daeddf
authored
Sep 25, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Release Jio Version 3.22.1
/reviewed-on
nexedi/erp5!408
parent
3be8d312
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
133 additions
and
12 deletions
+133
-12
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
...enderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
+130
-9
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
...nderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
View file @
c2daeddf
...
@@ -6684,7 +6684,7 @@ return new Parser;
...
@@ -6684,7 +6684,7 @@ return new Parser;
}
}
return
new
RegExp
(
"
^
"
+
stringEscapeRegexpCharacters
(
string
)
return
new
RegExp
(
"
^
"
+
stringEscapeRegexpCharacters
(
string
)
.
replace
(
regexp_percent
,
'
[
\\
s
\\
S]*
'
)
.
replace
(
regexp_percent
,
'
[
\\
s
\\
S]*
'
)
.
replace
(
regexp_underscore
,
'
.
'
)
+
"
$
"
);
.
replace
(
regexp_underscore
,
'
.
'
)
+
"
$
"
,
"
i
"
);
}
}
/**
/**
...
@@ -8224,7 +8224,7 @@ return new Parser;
...
@@ -8224,7 +8224,7 @@ return new Parser;
var
ceilHeapSize
=
function
(
v
)
{
var
ceilHeapSize
=
function
(
v
)
{
// The asm.js spec says:
// The asm.js spec says:
// The heap object's byteLength must be either
// The heap object's byteLength must be either
// 2^n for n in [12, 24) or 2^24 * n for n
≥
1.
// 2^n for n in [12, 24) or 2^24 * n for n
≥
1.
// Also, byteLengths smaller than 2^16 are deprecated.
// Also, byteLengths smaller than 2^16 are deprecated.
var
p
;
var
p
;
// If v is smaller than 2^16, the smallest possible solution
// If v is smaller than 2^16, the smallest possible solution
...
@@ -12366,10 +12366,9 @@ return new Parser;
...
@@ -12366,10 +12366,9 @@ return new Parser;
}(
jIO
,
RSVP
,
Blob
));
}(
jIO
,
RSVP
,
Blob
));
;
/*jslint nomen: true*/
;
/*jslint nomen: true*/
/*global Blob,
atob, btoa, RSVP
*/
/*global Blob,
RSVP, unescape, escape
*/
(
function
(
jIO
,
Blob
,
atob
,
btoa
,
RSVP
)
{
(
function
(
jIO
,
Blob
,
RSVP
,
unescape
,
escape
)
{
"
use strict
"
;
"
use strict
"
;
/**
/**
* The jIO DocumentStorage extension
* The jIO DocumentStorage extension
*
*
...
@@ -12385,7 +12384,13 @@ return new Parser;
...
@@ -12385,7 +12384,13 @@ return new Parser;
var
DOCUMENT_EXTENSION
=
"
.json
"
,
var
DOCUMENT_EXTENSION
=
"
.json
"
,
DOCUMENT_REGEXP
=
new
RegExp
(
"
^jio_document/([
\\
w=]+)
"
+
DOCUMENT_REGEXP
=
new
RegExp
(
"
^jio_document/([
\\
w=]+)
"
+
DOCUMENT_EXTENSION
+
"
$
"
),
DOCUMENT_EXTENSION
+
"
$
"
),
ATTACHMENT_REGEXP
=
new
RegExp
(
"
^jio_attachment/([
\\
w=]+)/([
\\
w=]+)$
"
);
ATTACHMENT_REGEXP
=
new
RegExp
(
"
^jio_attachment/([
\\
w=]+)/([
\\
w=]+)$
"
),
btoa
=
function
(
str
)
{
return
window
.
btoa
(
unescape
(
encodeURIComponent
(
str
)));
},
atob
=
function
(
str
)
{
return
decodeURIComponent
(
escape
(
window
.
atob
(
str
)));
};
function
getSubAttachmentIdFromParam
(
id
,
name
)
{
function
getSubAttachmentIdFromParam
(
id
,
name
)
{
if
(
name
===
undefined
)
{
if
(
name
===
undefined
)
{
...
@@ -12592,7 +12597,7 @@ return new Parser;
...
@@ -12592,7 +12597,7 @@ return new Parser;
jIO
.
addStorage
(
'
document
'
,
DocumentStorage
);
jIO
.
addStorage
(
'
document
'
,
DocumentStorage
);
}(
jIO
,
Blob
,
atob
,
btoa
,
RSVP
));
}(
jIO
,
Blob
,
RSVP
,
unescape
,
escape
));
;
/*
;
/*
* Copyright 2013, Nexedi SA
* Copyright 2013, Nexedi SA
* Released under the LGPL license.
* Released under the LGPL license.
...
@@ -13089,7 +13094,9 @@ return new Parser;
...
@@ -13089,7 +13094,9 @@ return new Parser;
end_index
-=
1
;
end_index
-=
1
;
}
}
function
resolver
(
result
)
{
function
resolver
(
result
)
{
result_list
.
push
(
result
);
if
(
result
.
blob
!==
undefined
)
{
result_list
.
push
(
result
);
}
resolve
(
result_list
);
resolve
(
result_list
);
}
}
function
getPart
(
i
)
{
function
getPart
(
i
)
{
...
@@ -13788,4 +13795,118 @@ return new Parser;
...
@@ -13788,4 +13795,118 @@ return new Parser;
jIO
.
addStorage
(
'
websql
'
,
WebSQLStorage
);
jIO
.
addStorage
(
'
websql
'
,
WebSQLStorage
);
}(
jIO
,
RSVP
,
Blob
,
openDatabase
));
}(
jIO
,
RSVP
,
Blob
,
openDatabase
));
\ No newline at end of file
;
/*jslint nomen: true */
/*global RSVP, UriTemplate*/
(
function
(
jIO
,
RSVP
,
UriTemplate
)
{
"
use strict
"
;
var
GET_POST_URL
=
"
https://graph.facebook.com/v2.9/{+post_id}
"
+
"
?fields={+fields}&access_token={+access_token}
"
,
get_post_template
=
UriTemplate
.
parse
(
GET_POST_URL
),
GET_FEED_URL
=
"
https://graph.facebook.com/v2.9/{+user_id}/feed
"
+
"
?fields={+fields}&limit={+limit}&since={+since}&access_token=
"
+
"
{+access_token}
"
,
get_feed_template
=
UriTemplate
.
parse
(
GET_FEED_URL
);
function
FBStorage
(
spec
)
{
if
(
typeof
spec
.
access_token
!==
'
string
'
||
!
spec
.
access_token
)
{
throw
new
TypeError
(
"
Access Token must be a string
"
+
"
which contains more than one character.
"
);
}
if
(
typeof
spec
.
user_id
!==
'
string
'
||
!
spec
.
user_id
)
{
throw
new
TypeError
(
"
User ID must be a string
"
+
"
which contains more than one character.
"
);
}
this
.
_access_token
=
spec
.
access_token
;
this
.
_user_id
=
spec
.
user_id
;
this
.
_default_field_list
=
spec
.
default_field_list
||
[];
this
.
_default_limit
=
spec
.
default_limit
||
500
;
}
FBStorage
.
prototype
.
get
=
function
(
id
)
{
var
that
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
get_post_template
.
expand
({
post_id
:
id
,
fields
:
that
.
_default_field_list
,
access_token
:
that
.
_access_token
})
});
})
.
push
(
function
(
result
)
{
return
JSON
.
parse
(
result
.
target
.
responseText
);
});
};
function
paginateResult
(
url
,
result
,
select_list
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
url
});
})
.
push
(
function
(
response
)
{
return
JSON
.
parse
(
response
.
target
.
responseText
);
},
function
(
err
)
{
throw
new
jIO
.
util
.
jIOError
(
"
Getting feed failed
"
+
err
.
toString
(),
err
.
target
.
status
);
})
.
push
(
function
(
response
)
{
if
(
response
.
data
.
length
===
0
)
{
return
result
;
}
var
i
,
j
,
obj
=
{};
for
(
i
=
0
;
i
<
response
.
data
.
length
;
i
+=
1
)
{
obj
.
id
=
response
.
data
[
i
].
id
;
obj
.
value
=
{};
for
(
j
=
0
;
j
<
select_list
.
length
;
j
+=
1
)
{
obj
.
value
[
select_list
[
j
]]
=
response
.
data
[
i
][
select_list
[
j
]];
}
result
.
push
(
obj
);
obj
=
{};
}
return
paginateResult
(
response
.
paging
.
next
,
result
,
select_list
);
});
}
FBStorage
.
prototype
.
buildQuery
=
function
(
query
)
{
var
that
=
this
,
fields
=
[],
limit
=
this
.
_default_limit
,
template_argument
=
{
user_id
:
this
.
_user_id
,
limit
:
limit
,
access_token
:
this
.
_access_token
};
if
(
query
.
include_docs
)
{
fields
=
fields
.
concat
(
that
.
_default_field_list
);
}
if
(
query
.
select_list
)
{
fields
=
fields
.
concat
(
query
.
select_list
);
}
if
(
query
.
limit
)
{
limit
=
query
.
limit
[
1
];
}
template_argument
.
fields
=
fields
;
template_argument
.
limit
=
limit
;
return
paginateResult
(
get_feed_template
.
expand
(
template_argument
),
[],
fields
)
.
push
(
function
(
result
)
{
if
(
!
query
.
limit
)
{
return
result
;
}
return
result
.
slice
(
query
.
limit
[
0
],
query
.
limit
[
1
]);
});
};
FBStorage
.
prototype
.
hasCapacity
=
function
(
name
)
{
var
this_storage_capacity_list
=
[
"
list
"
,
"
select
"
,
"
include
"
,
"
limit
"
];
if
(
this_storage_capacity_list
.
indexOf
(
name
)
!==
-
1
)
{
return
true
;
}
};
jIO
.
addStorage
(
'
facebook
'
,
FBStorage
);
}(
jIO
,
RSVP
,
UriTemplate
));
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
View file @
c2daeddf
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincentb
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.29047.58460.27443
</string>
</value>
<value>
<string>
96
2.14277.44425.47445
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
2962350.55
</float>
<float>
150
6330877.9
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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