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
Alexandra Rogova
jio
Commits
eae4943a
Commit
eae4943a
authored
Jul 26, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicated opml storage: improvements, update scenario test
parent
a5515a0a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
779 additions
and
580 deletions
+779
-580
examples/scenario_monitor.html
examples/scenario_monitor.html
+1
-0
examples/scenario_monitor.js
examples/scenario_monitor.js
+571
-434
src/jio.storage/opmlstorage.js
src/jio.storage/opmlstorage.js
+12
-9
src/jio.storage/replicatedopmltreestorage.js
src/jio.storage/replicatedopmltreestorage.js
+192
-137
src/jio.storage/rssfeedstorage.js
src/jio.storage/rssfeedstorage.js
+3
-0
No files found.
examples/scenario_monitor.html
View file @
eae4943a
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<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>
<script
src=
"../node_modules/sinon/pkg/sinon.js"
type=
"text/javascript"
></script>
<script
src=
"scenario_monitor.js"
></script>
<script
src=
"scenario_monitor.js"
></script>
</head>
</head>
...
...
examples/scenario_monitor.js
View file @
eae4943a
This diff is collapsed.
Click to expand it.
src/jio.storage/opmlstorage.js
View file @
eae4943a
...
@@ -14,15 +14,15 @@
...
@@ -14,15 +14,15 @@
function
getOpmlOutlineAsDict
(
outline
)
{
function
getOpmlOutlineAsDict
(
outline
)
{
var
outline_dict
=
{
var
outline_dict
=
{
title
:
outline
.
getAttribute
(
'
title
'
)
||
''
,
title
:
outline
.
getAttribute
(
'
title
'
)
||
dummy
.
textContent
,
htmlurl
:
outline
.
getAttribute
(
'
htmlUrl
'
)
||
''
,
htmlurl
:
outline
.
getAttribute
(
'
htmlUrl
'
)
||
dummy
.
textContent
,
xmlurl
:
outline
.
getAttribute
(
'
xmlUrl
'
)
||
''
,
xmlurl
:
outline
.
getAttribute
(
'
xmlUrl
'
)
||
dummy
.
textContent
,
url
:
outline
.
getAttribute
(
'
url
'
)
||
''
,
url
:
outline
.
getAttribute
(
'
url
'
)
||
dummy
.
textContent
,
text
:
outline
.
getAttribute
(
'
text
'
)
||
''
,
text
:
outline
.
getAttribute
(
'
text
'
)
||
dummy
.
textContent
,
type
:
outline
.
getAttribute
(
'
type
'
)
||
''
,
type
:
outline
.
getAttribute
(
'
type
'
)
||
dummy
.
textContent
,
version
:
outline
.
getAttribute
(
'
version
'
)
||
''
,
version
:
outline
.
getAttribute
(
'
version
'
)
||
dummy
.
textContent
,
created
:
outline
.
getAttribute
(
'
created
'
)
||
''
,
created
:
outline
.
getAttribute
(
'
created
'
)
||
dummy
.
textContent
,
category
:
outline
.
getAttribute
(
'
category
'
)
||
''
category
:
outline
.
getAttribute
(
'
category
'
)
||
dummy
.
textContent
};
};
return
outline_dict
;
return
outline_dict
;
}
}
...
@@ -122,6 +122,9 @@
...
@@ -122,6 +122,9 @@
.
push
(
function
(
response
)
{
.
push
(
function
(
response
)
{
var
element
,
var
element
,
result
;
result
;
if
(
!
response
.
target
.
responseText
)
{
throw
new
jIO
.
util
.
jIOError
(
"
Cannot find document
"
,
404
);
}
element
=
new
DOMParser
().
parseFromString
(
element
=
new
DOMParser
().
parseFromString
(
response
.
target
.
responseText
,
response
.
target
.
responseText
,
"
text/xml
"
"
text/xml
"
...
...
src/jio.storage/replicatedopmltreestorage.js
View file @
eae4943a
This diff is collapsed.
Click to expand it.
src/jio.storage/rssfeedstorage.js
View file @
eae4943a
...
@@ -152,6 +152,9 @@
...
@@ -152,6 +152,9 @@
.
push
(
function
(
response
)
{
.
push
(
function
(
response
)
{
var
element
,
var
element
,
item
;
item
;
if
(
!
response
.
target
.
responseText
)
{
throw
new
jIO
.
util
.
jIOError
(
"
Cannot find document
"
,
404
);
}
element
=
new
DOMParser
().
parseFromString
(
element
=
new
DOMParser
().
parseFromString
(
response
.
target
.
responseText
,
response
.
target
.
responseText
,
"
text/xml
"
"
text/xml
"
...
...
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