Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
96b399eb
Commit
96b399eb
authored
Oct 08, 2019
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release 3.41.0
parent
e6e4943b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16097 additions
and
13 deletions
+16097
-13
Makefile
Makefile
+1
-1
dist/jio-latest.js
dist/jio-latest.js
+50
-12
dist/jio-v3.41.0.js
dist/jio-v3.41.0.js
+16046
-0
No files found.
Makefile
View file @
96b399eb
...
...
@@ -26,7 +26,7 @@ TESTDIR = test
EXAMPLEDIR
=
examples
EXTERNALDIR
=
external
VERSION
=
3.4
0
.0
VERSION
=
3.4
1
.0
JIOVERSION
=
${DISTDIR}
/jio-v
${VERSION}
.js
JIOLATEST
=
${DISTDIR}
/jio-latest.js
JIONODEVERSION
=
${DISTDIR}
/jio-v
${VERSION}
-node
.js
...
...
dist/jio-latest.js
View file @
96b399eb
...
...
@@ -8121,9 +8121,9 @@ return new Parser;
* See https://www.nexedi.com/licensing for rationale and options.
*/
/*global window, RSVP, Blob, XMLHttpRequest, QueryFactory, Query, atob,
FileReader, ArrayBuffer, Uint8Array */
FileReader, ArrayBuffer, Uint8Array
, navigator
*/
(
function
(
window
,
RSVP
,
Blob
,
QueryFactory
,
Query
,
atob
,
FileReader
,
ArrayBuffer
,
Uint8Array
)
{
FileReader
,
ArrayBuffer
,
Uint8Array
,
navigator
)
{
"
use strict
"
;
/* Safari does not define DOMError */
...
...
@@ -8131,6 +8131,17 @@ return new Parser;
window
.
DOMError
=
{};
}
/* Document is not defined in ServiceWorkser */
if
(
window
.
document
===
undefined
)
{
window
.
document
=
{
createElementNS
:
function
()
{
throw
new
Error
(
'
document.createElementNS is not supported by
'
+
navigator
.
userAgent
);
}
};
}
var
util
=
{},
jIO
;
...
...
@@ -8658,7 +8669,7 @@ return new Parser;
window
.
jIO
=
jIO
;
}(
window
,
RSVP
,
Blob
,
QueryFactory
,
Query
,
atob
,
FileReader
,
ArrayBuffer
,
Uint8Array
));
FileReader
,
ArrayBuffer
,
Uint8Array
,
navigator
));
/*
* Rusha, a JavaScript implementation of the Secure Hash Algorithm, SHA-1,
* as defined in FIPS PUB 180-1, tuned for high performance with large inputs.
...
...
@@ -15886,26 +15897,50 @@ return new Parser;
*/
/*jslint nomen: true*/
/*global jIO, RSVP, DOMParser, XMLSerializer*/
(
function
(
jIO
,
RSVP
,
DOMParser
,
XMLSerializer
)
{
/*global
document,
jIO, RSVP, DOMParser, XMLSerializer*/
(
function
(
document
,
jIO
,
RSVP
,
DOMParser
,
XMLSerializer
)
{
"
use strict
"
;
var
parser
=
new
DOMParser
(),
serializer
=
new
XMLSerializer
();
function
makeXmlRpcRequest
(
file
,
from
,
to
)
{
function
makeXmlRpcRequest
(
file
,
from
,
to
,
conversion_kw
)
{
var
xml
=
parser
.
parseFromString
(
'
<?xml version="1.0" encoding="UTF-8"?><methodCall>
'
+
'
<methodName>convertFile</methodName><params>
'
+
'
<param><value><string></string></value></param>
'
+
'
<param><value><string></string></value></param>
'
+
'
<param><value><string></string></value></param></params></methodCall>
'
,
'
<param><value><string></string></value></param>
'
+
'
<param><struct></struct></param>
'
+
'
</params></methodCall>
'
,
'
text/xml
'
),
elt
,
member
,
name
,
value
,
key
,
struct
=
xml
.
getElementsByTagName
(
'
struct
'
),
string_list
=
xml
.
getElementsByTagName
(
'
string
'
);
string_list
[
0
].
textContent
=
file
;
string_list
[
1
].
textContent
=
from
;
string_list
[
2
].
textContent
=
to
;
if
(
conversion_kw
)
{
for
(
key
in
conversion_kw
)
{
if
(
conversion_kw
.
hasOwnProperty
(
key
))
{
elt
=
document
.
createElementNS
(
null
,
conversion_kw
[
key
][
1
]);
elt
.
textContent
=
conversion_kw
[
key
][
0
];
value
=
document
.
createElementNS
(
null
,
"
value
"
);
value
.
appendChild
(
elt
);
name
=
document
.
createElementNS
(
null
,
"
name
"
);
name
.
textContent
=
key
;
member
=
document
.
createElementNS
(
null
,
"
member
"
);
member
.
appendChild
(
name
);
member
.
appendChild
(
value
);
struct
[
0
].
appendChild
(
member
);
}
}
}
return
serializer
.
serializeToString
(
xml
);
}
...
...
@@ -15914,7 +15949,7 @@ return new Parser;
* from a format to another
* return converted blob.
**/
function
convert
(
url
,
blob
,
from
,
to
)
{
function
convert
(
url
,
blob
,
from
,
to
,
conversion_kw
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
readBlobAsDataURL
(
blob
);
...
...
@@ -15926,7 +15961,8 @@ return new Parser;
data
:
makeXmlRpcRequest
(
result
.
target
.
result
.
split
(
'
base64,
'
)[
1
],
from
,
to
to
,
conversion_kw
)
});
})
...
...
@@ -15976,11 +16012,13 @@ return new Parser;
return
this
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CloudoooStorage
.
prototype
.
putAttachment
=
function
(
id
,
name
,
blob
)
{
CloudoooStorage
.
prototype
.
putAttachment
=
function
(
id
,
name
,
blob
,
conversion_kw
)
{
var
storage
=
this
;
return
storage
.
get
(
id
)
.
push
(
function
(
doc
)
{
return
convert
(
storage
.
_url
,
blob
,
doc
.
from
,
doc
.
to
);
return
convert
(
storage
.
_url
,
blob
,
doc
.
from
,
doc
.
to
,
conversion_kw
);
})
.
push
(
function
(
converted_blob
)
{
return
storage
.
_sub_storage
.
putAttachment
(
id
,
name
,
converted_blob
);
...
...
@@ -16005,4 +16043,4 @@ return new Parser;
jIO
.
addStorage
(
'
cloudooo
'
,
CloudoooStorage
);
}(
jIO
,
RSVP
,
DOMParser
,
XMLSerializer
));
}(
document
,
jIO
,
RSVP
,
DOMParser
,
XMLSerializer
));
dist/jio-v3.41.0.js
0 → 100644
View file @
96b399eb
This diff is collapsed.
Click to expand it.
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