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
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
Nicolas Wavrant
jio
Commits
8569c867
Commit
8569c867
authored
Jan 08, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename applicationname to application_name
parent
d7efabc2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
43 deletions
+43
-43
src/jio.dummystorages.js
src/jio.dummystorages.js
+1
-1
src/jio.storage/davstorage.js
src/jio.storage/davstorage.js
+9
-9
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+3
-3
src/jio/jioNamespace.js
src/jio/jioNamespace.js
+1
-1
test/jiotests.js
test/jiotests.js
+29
-29
No files found.
src/jio.dummystorages.js
View file @
8569c867
...
...
@@ -224,7 +224,7 @@
// so {type:'dummyall3tries',a:'b'} differs from
// {type:'dummyall3tries',c:'d'}.
that
.
specToStore
=
function
()
{
return
{
"
application
name
"
:
spec
.
application
name
};
return
{
"
application
_name
"
:
spec
.
application_
name
};
};
priv
.
doJob
=
function
(
command
,
if_ok_return
)
{
...
...
src/jio.storage/davstorage.js
View file @
8569c867
...
...
@@ -23,8 +23,8 @@ var newDAVStorage = function ( spec, my ) {
priv
.
username
=
spec
.
username
||
''
;
priv
.
secured_username
=
priv
.
convertSlashes
(
priv
.
username
);
priv
.
application
name
=
spec
.
application
name
||
'
untitled
'
;
priv
.
secured_application
name
=
priv
.
convertSlashes
(
priv
.
application
name
);
priv
.
application
_name
=
spec
.
application_
name
||
'
untitled
'
;
priv
.
secured_application
_name
=
priv
.
convertSlashes
(
priv
.
application_
name
);
priv
.
url
=
spec
.
url
||
''
;
priv
.
password
=
spec
.
password
||
''
;
// TODO : is it secured ?
...
...
@@ -32,7 +32,7 @@ var newDAVStorage = function ( spec, my ) {
that
.
serialized
=
function
()
{
var
o
=
super_serialized
();
o
.
username
=
priv
.
username
;
o
.
application
name
=
priv
.
application
name
;
o
.
application
_name
=
priv
.
application_
name
;
o
.
url
=
priv
.
url
;
o
.
password
=
priv
.
password
;
// TODO : not realy secured...
return
o
;
...
...
@@ -82,7 +82,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
priv
.
secured_application
_
name
+
'
/
'
+
secured_docid
+
'
?_=
'
+
Date
.
now
(),
// to make url unique!
// and avoid chrome PUT on cache !
type
:
type
,
...
...
@@ -127,7 +127,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
priv
.
secured_application
_
name
+
'
/
'
+
secured_docid
+
'
?_=
'
+
Date
.
now
(),
type
:
"
GET
"
,
async
:
true
,
...
...
@@ -163,7 +163,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
priv
.
secured_application
_
name
+
'
/
'
+
secured_docid
+
'
?_=
'
+
Date
.
now
(),
type
:
"
PROPFIND
"
,
async
:
true
,
...
...
@@ -217,7 +217,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
priv
.
secured_application
_
name
+
'
/
'
+
priv
.
secureDocId
(
file
.
id
)
+
'
?_=
'
+
Date
.
now
(),
type
:
"
GET
"
,
async
:
true
,
...
...
@@ -245,7 +245,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
'
?_=
'
+
Date
.
now
(),
priv
.
secured_application
_
name
+
'
/
'
+
'
?_=
'
+
Date
.
now
(),
async
:
true
,
type
:
'
PROPFIND
'
,
dataType
:
'
xml
'
,
...
...
@@ -341,7 +341,7 @@ var newDAVStorage = function ( spec, my ) {
$
.
ajax
(
{
url
:
priv
.
url
+
'
/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
+
'
/
'
+
priv
.
secured_application
_
name
+
'
/
'
+
secured_docid
+
'
?_=
'
+
Date
.
now
(),
type
:
"
DELETE
"
,
async
:
true
,
...
...
src/jio.storage/localstorage.js
View file @
8569c867
...
...
@@ -28,10 +28,10 @@ var newLocalStorage = function (spec, my) {
// attributes
priv
.
username
=
spec
.
username
||
''
;
priv
.
application
name
=
spec
.
application
name
||
'
untitled
'
;
priv
.
application
_name
=
spec
.
application_
name
||
'
untitled
'
;
priv
.
localpath
=
'
jio/localstorage/
'
+
priv
.
username
+
'
/
'
+
priv
.
applicationname
;
priv
.
username
+
'
/
'
+
priv
.
application
_
name
;
// ==================== Tools ====================
/**
...
...
@@ -75,7 +75,7 @@ var newLocalStorage = function (spec, my) {
// ===================== overrides ======================
that
.
specToStore
=
function
()
{
return
{
"
application
name
"
:
priv
.
application
name
,
"
application
_name
"
:
priv
.
application_
name
,
"
username
"
:
priv
.
username
};
};
...
...
src/jio/jioNamespace.js
View file @
8569c867
...
...
@@ -15,7 +15,7 @@ var jioNamespace = (function(spec) {
* - {object} spec.storage: A storage description
* - {string} spec.storage.type: The storage type
* - {string} spec.storage.username: The user name
* - {string} spec.storage.applicationname: The application name
* - {string} spec.storage.application
_
name: The application name
* @return {object} The new Jio instance.
*/
Object
.
defineProperty
(
that
,
"
newJio
"
,{
...
...
test/jiotests.js
View file @
8569c867
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