Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
69d79d7b
Commit
69d79d7b
authored
Oct 05, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OfficeJS] Add officejs storage file and remove old storage file
parent
20e4a6a9
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
236 additions
and
507 deletions
+236
-507
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_appcache.xml
...page_module/gadget_officejs_bookmark_manager_appcache.xml
+4
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_illustration_appcache.xml
...web_page_module/gadget_officejs_illustration_appcache.xml
+4
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.html
...emplateItem/web_page_module/gadget_officejs_jio_html.html
+1
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.xml
...TemplateItem/web_page_module/gadget_officejs_jio_html.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_pdf_viewer_appcache.xml
...m/web_page_module/gadget_officejs_pdf_viewer_appcache.xml
+4
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_setting_appcache.xml
...Item/web_page_module/gadget_officejs_setting_appcache.xml
+4
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_appcache.xml
.../web_page_module/gadget_officejs_text_editor_appcache.xml
+4
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fixstorage_js.js
...ejs/PathTemplateItem/web_page_module/jio_fixstorage_js.js
+0
-118
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fixstorage_js.xml
...js/PathTemplateItem/web_page_module/jio_fixstorage_js.xml
+0
-321
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_ojs_storage_js.js
...js/PathTemplateItem/web_page_module/jio_ojs_storage_js.js
+177
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_ojs_storage_js.xml
...s/PathTemplateItem/web_page_module/jio_ojs_storage_js.xml
+15
-12
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml
...web_page_module/gadget_image_editor_officejs_appcache.xml
+4
-5
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table.appcache.xml
...emplateItem/web_page_module/gadget_web_table.appcache.xml
+4
-5
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_appcache.xml
.../web_page_module/gadget_ooffice_presentation_appcache.xml
+4
-5
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
...m/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
+4
-5
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_appcache.xml
...lateItem/web_page_module/gadget_ooffice_text_appcache.xml
+4
-5
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_appcache.xml
View file @
69d79d7b
...
@@ -119,8 +119,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -119,8 +119,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -344,7 +343,7 @@ NETWORK:\n
...
@@ -344,7 +343,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -358,7 +357,7 @@ NETWORK:\n
...
@@ -358,7 +357,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.40807.30284.14097
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -376,7 +375,7 @@ NETWORK:\n
...
@@ -376,7 +375,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
3579323.73
</float>
<float>
150
7552624.72
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_illustration_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -350,7 +349,7 @@ NETWORK:\n
...
@@ -350,7 +349,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.59292.36287.51694
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +367,7 @@ NETWORK:\n
...
@@ -368,7 +367,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882629.57
</float>
<float>
150
7552630.74
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.html
View file @
69d79d7b
...
@@ -10,8 +10,7 @@
...
@@ -10,8 +10,7 @@
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"jio_mappingstorage.js"
type=
"text/javascript"
></script>
<script
src=
"jio_ojs_storage.js"
type=
"text/javascript"
></script>
<script
src=
"jio_fixstorage.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<!-- custom script -->
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.xml
View file @
69d79d7b
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
0.3901.52182.22272
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
497517315.49
</float>
<float>
1
507552322.86
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_pdf_viewer_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -350,7 +349,7 @@ NETWORK:\n
...
@@ -350,7 +349,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +367,7 @@ NETWORK:\n
...
@@ -368,7 +367,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882651.79
</float>
<float>
150
7552642.43
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_setting_appcache.xml
View file @
69d79d7b
...
@@ -113,8 +113,7 @@
...
@@ -113,8 +113,7 @@
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
jiodev.js\n
jiodev.js\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
renderjs.js\n
renderjs.js\n
rsvp.js\n
rsvp.js\n
gadget_officejs_setting.js\n
gadget_officejs_setting.js\n
...
@@ -251,7 +250,7 @@ NETWORK:\n
...
@@ -251,7 +250,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -265,7 +264,7 @@ NETWORK:\n
...
@@ -265,7 +264,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
0.57151.51816.16622
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -283,7 +282,7 @@ NETWORK:\n
...
@@ -283,7 +282,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
1160529.99
</float>
<float>
150
7552649.8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_appcache.xml
View file @
69d79d7b
...
@@ -120,8 +120,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -120,8 +120,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_officejs_nojqm.css\n
gadget_officejs_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -340,7 +339,7 @@ NETWORK:\n
...
@@ -340,7 +339,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -354,7 +353,7 @@ NETWORK:\n
...
@@ -354,7 +353,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -372,7 +371,7 @@ NETWORK:\n
...
@@ -372,7 +371,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882642.06
</float>
<float>
150
7552655.47
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fixstorage_js.js
deleted
100644 → 0
View file @
20e4a6a9
/*globals jIO, Blob, Rusha, RSVP, URI*/
/*jslint indent: 2, maxlen: 80, nomen: true*/
(
function
(
jIO
,
Blob
,
Rusha
,
RSVP
,
URI
)
{
"
use strict
"
;
function
repairDocumentSignature
(
storage
,
signature_document
)
{
/* The aim is deleted corrupted data to have fresh one from server
And clear signature for inexistant document
This can be consider like a HACK
*/
return
storage
.
_sub_storage
.
allDocs
({
select_list
:
[
"
content_type
"
]
})
.
push
(
function
(
result
)
{
var
i
,
promise_list
=
[],
doc_list
=
result
.
data
.
rows
;
for
(
i
=
0
;
i
<
result
.
data
.
total_rows
;
i
+=
1
)
{
if
(
doc_list
[
i
].
value
.
content_type
!==
undefined
&&
!
doc_list
[
i
].
value
.
content_type
.
startsWith
(
"
application/x-asc
"
))
{
promise_list
.
push
(
storage
.
_sub_storage
.
remove
(
doc_list
[
i
].
id
)
);
}
}
return
RSVP
.
all
(
promise_list
);
})
.
push
(
function
()
{
signature_document
.
is_fixed
=
true
;
return
storage
.
_local_storage
.
put
(
storage
.
_signature_hash
,
signature_document
);
});
}
function
CompatibilityStorage
(
spec
)
{
this
.
_sub_storage
=
jIO
.
createJIO
(
spec
.
sub_storage
);
this
.
_replicate_storage
=
this
.
_sub_storage
.
__storage
;
this
.
_local_storage
=
this
.
_replicate_storage
.
_local_sub_storage
;
this
.
_signature_hash
=
this
.
_replicate_storage
.
_signature_hash
;
}
CompatibilityStorage
.
prototype
.
get
=
function
()
{
return
this
.
_sub_storage
.
get
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
put
=
function
()
{
return
this
.
_sub_storage
.
put
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
post
=
function
()
{
return
this
.
_sub_storage
.
post
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
remove
=
function
()
{
return
this
.
_sub_storage
.
remove
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
hasCapacity
=
function
()
{
return
this
.
_sub_storage
.
hasCapacity
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
repair
=
function
()
{
var
storage
=
this
,
signature_doc
;
// Here fix the local storage for some cases.
return
storage
.
_local_storage
.
get
(
this
.
_signature_hash
)
.
push
(
undefined
,
function
(
error
)
{
if
(
error
.
status_code
===
404
)
{
return
{
is_fixed
:
false
};
}
})
.
push
(
function
(
doc
)
{
if
(
!
doc
.
is_fixed
)
{
return
repairDocumentSignature
(
storage
,
doc
);
}
})
.
push
(
function
()
{
return
storage
.
_sub_storage
.
repair
.
apply
(
storage
.
_sub_storage
,
arguments
);
});
};
CompatibilityStorage
.
prototype
.
allAttachments
=
function
(
doc_id
)
{
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
getAttachment
=
function
(
doc_id
)
{
var
context
=
this
;
return
context
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
putAttachment
=
function
()
{
return
this
.
_sub_storage
.
putAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
removeAttachment
=
function
()
{
return
this
.
_sub_storage
.
removeAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
CompatibilityStorage
.
prototype
.
buildQuery
=
function
()
{
return
this
.
_sub_storage
.
buildQuery
.
apply
(
this
.
_sub_storage
,
arguments
);
};
jIO
.
addStorage
(
'
fix_local
'
,
CompatibilityStorage
);
}(
jIO
,
Blob
,
Rusha
,
RSVP
,
URI
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fixstorage_js.xml
deleted
100644 → 0
View file @
20e4a6a9
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_
mapping
storage_js.js
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_
ojs_
storage_js.js
View file @
69d79d7b
...
@@ -617,3 +617,179 @@
...
@@ -617,3 +617,179 @@
jIO
.
addStorage
(
'
mapping
'
,
MappingStorage
);
jIO
.
addStorage
(
'
mapping
'
,
MappingStorage
);
}(
jIO
,
RSVP
,
UriTemplate
,
SimpleQuery
,
ComplexQuery
,
QueryFactory
,
Query
,
}(
jIO
,
RSVP
,
UriTemplate
,
SimpleQuery
,
ComplexQuery
,
QueryFactory
,
Query
,
FormData
));
FormData
));
/*jslint nomen: true*/
(
function
(
jIO
)
{
"
use strict
"
;
/**
* The jIO DateUpdaterStorage extension
*
* @class DateUpdaterStorage
* @constructor
*/
function
updateDocument
(
doc
,
property_list
)
{
var
i
,
len
=
property_list
.
length
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
doc
[
property_list
[
i
]]
=
new
Date
().
toUTCString
().
replace
(
'
GMT
'
,
'
+0000
'
);
}
return
doc
;
}
function
DateUpdaterStorage
(
spec
)
{
this
.
_sub_storage
=
jIO
.
createJIO
(
spec
.
sub_storage
);
this
.
_property_list
=
spec
.
property_list
||
[];
}
DateUpdaterStorage
.
prototype
.
get
=
function
()
{
return
this
.
_sub_storage
.
get
.
apply
(
this
.
_sub_storage
,
arguments
);
};
DateUpdaterStorage
.
prototype
.
allAttachments
=
function
()
{
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
arguments
);
};
DateUpdaterStorage
.
prototype
.
post
=
function
(
doc
)
{
doc
=
updateDocument
(
doc
,
this
.
_property_list
);
return
this
.
_sub_storage
.
post
(
doc
);
};
DateUpdaterStorage
.
prototype
.
put
=
function
(
id
,
doc
)
{
doc
=
updateDocument
(
doc
,
this
.
_property_list
);
return
this
.
_sub_storage
.
put
(
id
,
doc
);
};
DateUpdaterStorage
.
prototype
.
remove
=
function
()
{
return
this
.
_sub_storage
.
remove
.
apply
(
this
.
_sub_storage
,
arguments
);
};
DateUpdaterStorage
.
prototype
.
getAttachment
=
function
()
{
return
this
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
DateUpdaterStorage
.
prototype
.
putAttachment
=
function
(
id
)
{
var
storage
=
this
,
argument_list
=
arguments
;
return
storage
.
get
(
id
)
.
push
(
function
(
doc
)
{
return
storage
.
put
(
id
,
doc
);
})
.
push
(
function
()
{
return
storage
.
_sub_storage
.
putAttachment
.
apply
(
storage
.
_sub_storage
,
argument_list
);
});
};
DateUpdaterStorage
.
prototype
.
removeAttachment
=
function
(
id
)
{
var
storage
=
this
,
argument_list
=
arguments
;
return
storage
.
get
(
id
)
.
push
(
function
(
doc
)
{
return
storage
.
put
(
id
,
doc
);
})
.
push
(
function
()
{
return
storage
.
_sub_storage
.
removeAttachment
.
apply
(
storage
.
_sub_storage
,
argument_list
);
});
};
DateUpdaterStorage
.
prototype
.
repair
=
function
()
{
return
this
.
_sub_storage
.
repair
.
apply
(
this
.
_sub_storage
,
arguments
);
};
DateUpdaterStorage
.
prototype
.
hasCapacity
=
function
(
name
)
{
return
this
.
_sub_storage
.
hasCapacity
(
name
);
};
DateUpdaterStorage
.
prototype
.
buildQuery
=
function
()
{
return
this
.
_sub_storage
.
buildQuery
.
apply
(
this
.
_sub_storage
,
arguments
);
};
jIO
.
addStorage
(
'
dateupdater
'
,
DateUpdaterStorage
);
}(
jIO
));
/*jslint nomen: true*/
(
function
(
jIO
)
{
"
use strict
"
;
/**
* The jIO SafeRepairStorage extension
*
* @class SafeRepairStorage
* @constructor
*/
function
SafeRepairStorage
(
spec
)
{
this
.
_sub_storage
=
jIO
.
createJIO
(
spec
.
sub_storage
);
this
.
_id_dict
=
{};
}
SafeRepairStorage
.
prototype
.
get
=
function
()
{
return
this
.
_sub_storage
.
get
.
apply
(
this
.
_sub_storage
,
arguments
);
};
SafeRepairStorage
.
prototype
.
allAttachments
=
function
()
{
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
arguments
);
};
SafeRepairStorage
.
prototype
.
post
=
function
()
{
return
this
.
_sub_storage
.
post
.
apply
(
this
.
_sub_storage
,
arguments
);
};
SafeRepairStorage
.
prototype
.
put
=
function
(
id
,
doc
)
{
var
storage
=
this
;
return
this
.
_sub_storage
.
put
.
apply
(
this
.
_sub_storage
,
arguments
)
.
push
(
undefined
,
function
(
error
)
{
if
(
error
instanceof
jIO
.
util
.
jIOError
&&
error
.
status_code
===
403
)
{
if
(
storage
.
_id_dict
[
id
])
{
return
storage
.
_sub_storage
.
put
(
storage
.
_id_dict
[
id
],
doc
);
}
return
storage
.
_sub_storage
.
post
(
doc
)
.
push
(
function
(
sub_id
)
{
storage
.
_id_dict
[
id
]
=
sub_id
;
return
sub_id
;
});
}
});
};
SafeRepairStorage
.
prototype
.
remove
=
function
()
{
return
;
};
SafeRepairStorage
.
prototype
.
getAttachment
=
function
()
{
return
this
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
arguments
);
};
SafeRepairStorage
.
prototype
.
putAttachment
=
function
(
id
,
attachment_id
,
attachment
)
{
var
storage
=
this
;
return
this
.
_sub_storage
.
putAttachment
.
apply
(
this
.
_sub_storage
,
arguments
)
.
push
(
undefined
,
function
(
error
)
{
if
(
error
instanceof
jIO
.
util
.
jIOError
&&
error
.
status_code
===
403
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
if
(
storage
.
_id_dict
[
id
])
{
return
storage
.
_id_dict
[
id
];
}
return
storage
.
_sub_storage
.
get
(
id
)
.
push
(
function
(
doc
)
{
return
storage
.
_sub_storage
.
post
(
doc
);
});
})
.
push
(
function
(
sub_id
)
{
storage
.
_id_dict
[
id
]
=
sub_id
;
return
storage
.
_sub_storage
.
putAttachment
(
sub_id
,
attachment_id
,
attachment
);
});
}
});
};
SafeRepairStorage
.
prototype
.
removeAttachment
=
function
()
{
return
;
};
SafeRepairStorage
.
prototype
.
repair
=
function
()
{
return
this
.
_sub_storage
.
repair
.
apply
(
this
.
_sub_storage
,
arguments
);
};
SafeRepairStorage
.
prototype
.
hasCapacity
=
function
(
name
)
{
return
this
.
_sub_storage
.
hasCapacity
(
name
);
};
SafeRepairStorage
.
prototype
.
buildQuery
=
function
()
{
return
this
.
_sub_storage
.
buildQuery
.
apply
(
this
.
_sub_storage
,
arguments
);
};
jIO
.
addStorage
(
'
saferepair
'
,
SafeRepairStorage
);
}(
jIO
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_
mapping
storage_js.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_
ojs_
storage_js.xml
View file @
69d79d7b
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Manager
</string>
</tuple>
</tuple>
...
@@ -42,6 +43,8 @@
...
@@ -42,6 +43,8 @@
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Manager
</string>
</tuple>
</tuple>
</value>
</value>
...
@@ -74,7 +77,7 @@
...
@@ -74,7 +77,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
jio_
mapping
storage.js
</string>
</value>
<value>
<string>
jio_
ojs_
storage.js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -84,7 +87,7 @@
...
@@ -84,7 +87,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
jio_
mapping
storage_js
</string>
</value>
<value>
<string>
jio_
ojs_
storage_js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
...
@@ -102,7 +105,7 @@
...
@@ -102,7 +105,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
jio_
mapping
storage.js
</string>
</value>
<value>
<string>
jio_
ojs_
storage.js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
url_string
</string>
</key>
<key>
<string>
url_string
</string>
</key>
...
@@ -168,11 +171,11 @@
...
@@ -168,11 +171,11 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
action
</string>
</key>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</string>
</value>
<value>
<string>
publish
_alive
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -194,7 +197,7 @@
...
@@ -194,7 +197,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
486561509.52
</float>
<float>
1
507730066.16
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -203,7 +206,7 @@
...
@@ -203,7 +206,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
validation_state
</string>
</key>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
<value>
<string>
published
_alive
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
...
@@ -225,7 +228,7 @@
...
@@ -225,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -239,7 +242,7 @@
...
@@ -239,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
0.25496.14411.56081
</string>
</value>
<value>
<string>
96
2.45923.44376.29252
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -257,7 +260,7 @@
...
@@ -257,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
2900157.25
</float>
<float>
150
7730215.96
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -284,7 +287,7 @@
...
@@ -284,7 +287,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -314,7 +317,7 @@
...
@@ -314,7 +317,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
486542996.4
</float>
<float>
1
507197694.87
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -338,7 +337,7 @@ NETWORK:\n
...
@@ -338,7 +337,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -352,7 +351,7 @@ NETWORK:\n
...
@@ -352,7 +351,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -370,7 +369,7 @@ NETWORK:\n
...
@@ -370,7 +369,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882749.21
</float>
<float>
150
7552636.58
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table.appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -330,7 +329,7 @@ NETWORK:\n
...
@@ -330,7 +329,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -344,7 +343,7 @@ NETWORK:\n
...
@@ -344,7 +343,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -362,7 +361,7 @@ NETWORK:\n
...
@@ -362,7 +361,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882740.6
8
</float>
<float>
150
7552665.0
8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -350,7 +349,7 @@ NETWORK:\n
...
@@ -350,7 +349,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +367,7 @@ NETWORK:\n
...
@@ -368,7 +367,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
488273
1.36
</float>
<float>
150
755267
1.36
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -350,7 +349,7 @@ NETWORK:\n
...
@@ -350,7 +349,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.59750
</string>
</value>
<value>
<string>
96
2.42958.18622.47018
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +367,7 @@ NETWORK:\n
...
@@ -368,7 +367,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882719.22
</float>
<float>
150
7552677.3
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_appcache.xml
View file @
69d79d7b
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
...
@@ -116,8 +116,7 @@ font-awesome/font-awesome-webfont.woff2\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.ttf\n
font-awesome/font-awesome-webfont.svg\n
font-awesome/font-awesome-webfont.svg\n
gadget_erp5_nojqm.css\n
gadget_erp5_nojqm.css\n
jio_mappingstorage.js\n
jio_ojs_storage.js\n
jio_fixstorage.js\n
gadget_erp5_global.js\n
gadget_erp5_global.js\n
URI.js\n
URI.js\n
dygraph.js\n
dygraph.js\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
...
@@ -336,7 +335,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -350,7 +349,7 @@ NETWORK:\n
...
@@ -350,7 +349,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.62559.15643.5975
0
</string>
</value>
<value>
<string>
96
2.42966.4115.5690
0
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +367,7 @@ NETWORK:\n
...
@@ -368,7 +367,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
4882676.53
</float>
<float>
150
7639011.94
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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