Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Bryan Kaperick
jio
Commits
3d97883d
Commit
3d97883d
authored
Aug 24, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicated opml now check signature and use new parser storage
parent
134f4eda
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
997 additions
and
1028 deletions
+997
-1028
Gruntfile.js
Gruntfile.js
+1
-5
examples/scenario_monitor.html
examples/scenario_monitor.html
+2
-0
examples/scenario_monitor.js
examples/scenario_monitor.js
+500
-726
src/jio.storage/replicatedopmltreestorage.js
src/jio.storage/replicatedopmltreestorage.js
+482
-290
src/jio.storage/webhttpstorage.js
src/jio.storage/webhttpstorage.js
+12
-7
No files found.
Gruntfile.js
View file @
3d97883d
...
@@ -182,11 +182,7 @@ module.exports = function (grunt) {
...
@@ -182,11 +182,7 @@ module.exports = function (grunt) {
'
src/jio.storage/localstorage.js
'
,
'
src/jio.storage/localstorage.js
'
,
'
src/jio.storage/indexeddbstorage.js
'
,
'
src/jio.storage/indexeddbstorage.js
'
,
'
src/jio.storage/cryptstorage.js
'
,
'
src/jio.storage/cryptstorage.js
'
,
'
src/jio.storage/websqlstorage.js
'
,
'
src/jio.storage/websqlstorage.js
'
'
src/jio.storage/rssfeedstorage.js
'
,
'
src/jio.storage/opmlstorage.js
'
,
'
src/jio.storage/replicatedopmltreestorage.js
'
,
'
src/jio.storage/webhttpstorage.js
'
],
],
dest
:
'
dist/<%= pkg.name %>-<%= pkg.version %>.js
'
dest
:
'
dist/<%= pkg.name %>-<%= pkg.version %>.js
'
// dest: 'jio.js'
// dest: 'jio.js'
...
...
examples/scenario_monitor.html
View file @
3d97883d
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
<script
src=
"../node_modules/rsvp/dist/rsvp-2.0.4.js"
></script>
<script
src=
"../node_modules/rsvp/dist/rsvp-2.0.4.js"
></script>
<script
src=
"../dist/jio-latest.js"
></script>
<script
src=
"../dist/jio-latest.js"
></script>
<script
src=
"../src/jio.storage/replicatedopmltreestorage.js"
></script>
<script
src=
"../src/jio.storage/webhttpstorage.js"
></script>
<link
rel=
"stylesheet"
href=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.css"
type=
"text/css"
media=
"screen"
/>
<link
rel=
"stylesheet"
href=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.css"
type=
"text/css"
media=
"screen"
/>
<script
src=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.js"
type=
"text/javascript"
></script>
<script
src=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.js"
type=
"text/javascript"
></script>
...
...
examples/scenario_monitor.js
View file @
3d97883d
This diff is collapsed.
Click to expand it.
src/jio.storage/replicatedopmltreestorage.js
View file @
3d97883d
This diff is collapsed.
Click to expand it.
src/jio.storage/webhttpstorage.js
View file @
3d97883d
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
throw
new
jIO
.
util
.
jIOError
(
"
id
"
+
id
+
"
is forbidden (no begin /)
"
,
throw
new
jIO
.
util
.
jIOError
(
"
id
"
+
id
+
"
is forbidden (no begin /)
"
,
400
);
400
);
}
}
if
(
id
.
lastIndexOf
(
"
/
"
)
!
==
(
id
.
length
-
1
))
{
if
(
id
.
lastIndexOf
(
"
/
"
)
=
==
(
id
.
length
-
1
))
{
throw
new
jIO
.
util
.
jIOError
(
"
id
"
+
id
+
"
is forbidden (no end /)
"
,
throw
new
jIO
.
util
.
jIOError
(
"
id
"
+
id
+
"
is forbidden (no end /)
"
,
400
);
400
);
}
}
...
@@ -84,14 +84,19 @@
...
@@ -84,14 +84,19 @@
}
}
WEBHTTPStorage
.
prototype
.
get
=
function
(
id
)
{
WEBHTTPStorage
.
prototype
.
get
=
function
(
id
)
{
var
context
=
this
,
var
context
=
this
;
element
;
id
=
restrictDocumentId
(
id
);
id
=
restrictDocumentId
(
id
);
element
=
getJsonDocument
(
context
,
id
);
return
getJsonDocument
(
context
,
id
)
if
(
element
!==
undefined
)
{
.
push
(
function
(
element
)
{
return
element
.
doc
;
return
element
.
doc
;
},
function
(
error
)
{
if
((
error
.
target
!==
undefined
)
&&
(
error
.
target
.
status
===
404
))
{
throw
new
jIO
.
util
.
jIOError
(
"
Cannot find document
"
,
404
);
}
}
throw
error
;
});
};
};
WEBHTTPStorage
.
prototype
.
hasCapacity
=
function
(
capacity
)
{
WEBHTTPStorage
.
prototype
.
hasCapacity
=
function
(
capacity
)
{
...
...
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