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
02686913
Commit
02686913
authored
Aug 21, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jio dashboard updated to work with latest libraries
parent
054e9fc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
examples/jio_dashboard.html
examples/jio_dashboard.html
+20
-20
No files found.
examples/jio_dashboard.html
View file @
02686913
...
@@ -149,7 +149,7 @@ var clearlog = function () {
...
@@ -149,7 +149,7 @@ var clearlog = function () {
<hr
/>
<hr
/>
<div
id=
"log"
>
<div
id=
"log"
>
</div>
</div>
<script
type=
"text/javascript"
src=
"../
lib/md5/md5
.js"
></script>
<script
type=
"text/javascript"
src=
"../
src/md5.amd
.js"
></script>
<script
type=
"text/javascript"
src=
"../complex_queries.js"
></script>
<script
type=
"text/javascript"
src=
"../complex_queries.js"
></script>
<script
type=
"text/javascript"
src=
"../jio.js"
></script>
<script
type=
"text/javascript"
src=
"../jio.js"
></script>
<script
type=
"text/javascript"
src=
"../src/jio.storage/localstorage.js"
>
<script
type=
"text/javascript"
src=
"../src/jio.storage/localstorage.js"
>
...
@@ -159,7 +159,7 @@ var clearlog = function () {
...
@@ -159,7 +159,7 @@ var clearlog = function () {
</script>
</script>
<script
type=
"text/javascript"
src=
"../src/jio.storage/erp5storage.js"
>
<script
type=
"text/javascript"
src=
"../src/jio.storage/erp5storage.js"
>
</script>
</script>
<script
type=
"text/javascript"
src=
"../
lib/jsSha2/sha2
.js"
></script>
<script
type=
"text/javascript"
src=
"../
src/sha256.amd
.js"
></script>
<script
type=
"text/javascript"
src=
"../src/jio.storage/revisionstorage.js"
>
<script
type=
"text/javascript"
src=
"../src/jio.storage/revisionstorage.js"
>
</script>
</script>
<script
type=
"text/javascript"
src=
"../src/jio.storage/splitstorage.js"
>
<script
type=
"text/javascript"
src=
"../src/jio.storage/splitstorage.js"
>
...
@@ -174,8 +174,8 @@ var clearlog = function () {
...
@@ -174,8 +174,8 @@ var clearlog = function () {
var
my_jio
=
null
;
var
my_jio
=
null
;
var
newLocalJio
=
function
()
{
var
newLocalJio
=
function
()
{
var
localuser
,
localapp
;
var
localuser
,
localapp
;
localuser
=
$
(
'
#localuser
'
).
attr
(
'
value
'
);
localuser
=
$
(
'
#localuser
'
).
val
(
);
localapp
=
$
(
'
#localapp
'
).
attr
(
'
value
'
);
localapp
=
$
(
'
#localapp
'
).
val
(
);
var
spec
=
{
type
:
'
local
'
,
username
:
localuser
,
application_name
:
localapp
};
var
spec
=
{
type
:
'
local
'
,
username
:
localuser
,
application_name
:
localapp
};
if
(
my_jio
)
{
log
(
'
closing older jio
'
);
my_jio
.
close
();
}
if
(
my_jio
)
{
log
(
'
closing older jio
'
);
my_jio
.
close
();
}
log
(
'
local storage description object:
'
+
JSON
.
stringify
(
spec
));
log
(
'
local storage description object:
'
+
JSON
.
stringify
(
spec
));
...
@@ -183,9 +183,9 @@ var newLocalJio = function () {
...
@@ -183,9 +183,9 @@ var newLocalJio = function () {
};
};
var
newCryptJio
=
function
()
{
var
newCryptJio
=
function
()
{
var
user
,
app
,
pwd
;
var
user
,
app
,
pwd
;
user
=
$
(
'
#cryptuser
'
).
attr
(
'
value
'
);
user
=
$
(
'
#cryptuser
'
).
val
(
);
app
=
$
(
'
#cryptapp
'
).
attr
(
'
value
'
);
app
=
$
(
'
#cryptapp
'
).
val
(
);
pwd
=
$
(
'
#cryptpassword
'
).
attr
(
'
value
'
);
pwd
=
$
(
'
#cryptpassword
'
).
val
(
);
var
spec
=
{
type
:
'
crypt
'
,
username
:
user
,
password
:
pwd
,
storage
:{
var
spec
=
{
type
:
'
crypt
'
,
username
:
user
,
password
:
pwd
,
storage
:{
type
:
'
local
'
,
username
:
user
,
application_name
:
app
type
:
'
local
'
,
username
:
user
,
application_name
:
app
}};
}};
...
@@ -195,9 +195,9 @@ var newCryptJio = function () {
...
@@ -195,9 +195,9 @@ var newCryptJio = function () {
};
};
var
newDavJio
=
function
()
{
var
newDavJio
=
function
()
{
var
user
,
app
,
pwd
,
url
;
var
user
,
app
,
pwd
,
url
;
user
=
$
(
'
#davuser
'
).
attr
(
'
value
'
);
user
=
$
(
'
#davuser
'
).
val
(
);
pwd
=
$
(
'
#davpassword
'
).
attr
(
'
value
'
);
pwd
=
$
(
'
#davpassword
'
).
val
(
);
url
=
$
(
'
#davurl
'
).
attr
(
'
value
'
);
url
=
$
(
'
#davurl
'
).
val
(
);
var
spec
=
{
var
spec
=
{
"
type
"
:
"
dav
"
,
"
type
"
:
"
dav
"
,
"
url
"
:
url
,
"
url
"
:
url
,
...
@@ -211,8 +211,8 @@ var newDavJio = function () {
...
@@ -211,8 +211,8 @@ var newDavJio = function () {
};
};
var
newRevisionJio
=
function
()
{
var
newRevisionJio
=
function
()
{
var
user
,
app
;
var
user
,
app
;
user
=
$
(
'
#revisionuser
'
).
attr
(
'
value
'
);
user
=
$
(
'
#revisionuser
'
).
val
(
);
app
=
$
(
'
#revisionapp
'
).
attr
(
'
value
'
);
app
=
$
(
'
#revisionapp
'
).
val
(
);
var
spec
=
{
var
spec
=
{
type
:
'
revision
'
,
sub_storage
:
{
type
:
'
revision
'
,
sub_storage
:
{
type
:
'
local
'
,
username
:
user
,
application_name
:
app
type
:
'
local
'
,
username
:
user
,
application_name
:
app
...
@@ -223,7 +223,7 @@ var newRevisionJio = function () {
...
@@ -223,7 +223,7 @@ var newRevisionJio = function () {
my_jio
=
jIO
.
newJio
(
spec
);
my_jio
=
jIO
.
newJio
(
spec
);
};
};
var
newCustomJio
=
function
()
{
var
newCustomJio
=
function
()
{
var
spec
=
JSON
.
parse
(
$
(
'
#customstorage
'
).
attr
(
'
value
'
));
var
spec
=
JSON
.
parse
(
$
(
'
#customstorage
'
).
val
(
));
if
(
my_jio
)
{
log
(
'
closing older jio
'
);
my_jio
.
close
();
}
if
(
my_jio
)
{
log
(
'
closing older jio
'
);
my_jio
.
close
();
}
log
(
'
custom storage description object:
'
+
JSON
.
stringify
(
spec
));
log
(
'
custom storage description object:
'
+
JSON
.
stringify
(
spec
));
my_jio
=
jIO
.
newJio
(
spec
);
my_jio
=
jIO
.
newJio
(
spec
);
...
@@ -250,19 +250,19 @@ var command = function (method) {
...
@@ -250,19 +250,19 @@ var command = function (method) {
return
error
(
'
no jio set
'
);
return
error
(
'
no jio set
'
);
}
}
opts
.
query
=
$
(
'
#query
'
).
attr
(
'
value
'
);
opts
.
query
=
$
(
'
#query
'
).
val
(
);
opts
.
include_docs
=
$
(
'
#include_docs
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
include_docs
=
$
(
'
#include_docs
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
wildcard_character
=
$
(
'
#wildcard
'
).
attr
(
'
value
'
)
||
""
;
opts
.
wildcard_character
=
$
(
'
#wildcard
'
).
val
(
)
||
""
;
opts
.
sort_on
=
JSON
.
parse
(
$
(
'
#sort_on
'
).
attr
(
'
value
'
)
||
null
);
opts
.
sort_on
=
JSON
.
parse
(
$
(
'
#sort_on
'
).
val
(
)
||
null
);
opts
.
select_list
=
JSON
.
parse
(
$
(
'
#select_list
'
).
attr
(
'
value
'
)
||
null
);
opts
.
select_list
=
JSON
.
parse
(
$
(
'
#select_list
'
).
val
(
)
||
null
);
opts
.
limit
=
JSON
.
parse
(
$
(
'
#limit
'
).
attr
(
'
value
'
)
||
null
);
opts
.
limit
=
JSON
.
parse
(
$
(
'
#limit
'
).
val
(
)
||
null
);
opts
.
conflicts
=
$
(
'
#show_conflicts
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
conflicts
=
$
(
'
#show_conflicts
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
revs
=
$
(
'
#show_revision_history
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
revs
=
$
(
'
#show_revision_history
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
revs_info
=
$
(
'
#show_revision_info
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
revs_info
=
$
(
'
#show_revision_info
'
).
attr
(
'
checked
'
)
?
true
:
false
;
opts
.
max_retry
=
parseInt
(
$
(
'
#max_retry
'
).
attr
(
'
value
'
)
||
'
0
'
);
opts
.
max_retry
=
parseInt
(
$
(
'
#max_retry
'
).
val
(
)
||
'
0
'
);
doc
=
JSON
.
parse
(
$
(
'
#metadata
'
).
attr
(
'
value
'
));
doc
=
JSON
.
parse
(
$
(
'
#metadata
'
).
val
(
));
log
(
'
doc:
'
+
JSON
.
stringify
(
doc
));
log
(
'
doc:
'
+
JSON
.
stringify
(
doc
));
log
(
'
opts:
'
+
JSON
.
stringify
(
opts
));
log
(
'
opts:
'
+
JSON
.
stringify
(
opts
));
...
...
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