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
Labels
Merge Requests
147
Merge Requests
147
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
448c8af0
Commit
448c8af0
authored
Mar 18, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: fix in appcachestorage sync
parent
310f3338
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
21 deletions
+39
-21
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_appcache.xml
..._page_module/gadget_officejs_discussion_tool_appcache.xml
+19
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_configuration.xml
..._module/gadget_officejs_discussion_tool_configuration.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.js
...athTemplateItem/web_page_module/gadget_officejs_jio_js.js
+5
-7
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.xml
...thTemplateItem/web_page_module/gadget_officejs_jio_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_controller_html.html
...web_page_module/gadget_officejs_page_controller_html.html
+9
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_controller_html.xml
.../web_page_module/gadget_officejs_page_controller_html.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_appcache.xml
View file @
448c8af0
...
...
@@ -221,17 +221,28 @@ gadget_officejs_setting.html\n
officejs_logo_text_editor.png\n
\n
#discussion tool\n
jio_appcachestorage.js\n
gadget_erp5_pt_form_view_editable.html\n
gadget_erp5_pt_form_view_editable.js\n
#gadget_erp5_pt_form_view_editable.html\n
#gadget_erp5_pt_form_view_editable.js\n
gadget_officejs_discussion_tool_router.html\n
\n
#needed for appcachestorage sync\n
/\n
app/\n
gadget_officejs_discussion_tool.configuration\n
gadget_officejs_discussion_tool.json\n
gadget_officejs_bootloader.js\n
gadget_officejs_bootloader_presentation.html\n
gadget_officejs_bootloader_presentation.js\n
gadget_officejs_bootloader_presentation.css\n
gadget_officejs_bootloader_serviceworker.js\n
officejs_logo.png\n
jio_appcachestorage.js\n
\n
#configuration resources\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_skins%2Ferp5_officejs_jio_connector%2FHTMLPost_viewAsJio&view=jio_view\n
\n
\n
#gadget_erp5_page_ojs_controller.html\n
#gadget_erp5_page_ojs_controller.js\n
gadget_erp5_page_ojs_controller.html\n
gadget_erp5_page_ojs_controller.js\n
gadget_erp5_page_ojs_post_list.html\n
gadget_erp5_page_ojs_post_list.js\n
gadget_erp5_page_ojs_add_post.html\n
...
...
@@ -722,7 +733,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.2
3087.41251.34321
</string>
</value>
<value>
<string>
974.2
8677.41110.58265
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -740,7 +751,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
1552
654934
.35
</float>
<float>
1552
930907
.35
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_configuration.xml
View file @
448c8af0
...
...
@@ -262,7 +262,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.2
2751.14721.17885
</string>
</value>
<value>
<string>
974.2
8632.10387.52002
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -280,7 +280,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
1552
575389.52
</float>
<float>
1552
929997.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.js
View file @
448c8af0
...
...
@@ -77,8 +77,8 @@
var
gadget
=
this
,
origin_url
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
hostname
+
window
.
location
.
pathname
,
prefix
=
"
./
"
,
// TODO these values should come from gadget.props.cache_file/version -add script in html body
version
=
"
app/
"
,
hateoas_script
=
"
hateoas/ERP5Document_getHateoas
"
,
// TODO manifest should come from gadget.props.cache_file -add script in html body
manifest
=
"
gadget_officejs_discussion_tool.configuration
"
,
// TODO review this storage because is not necessary to save the attachments into data storage
// it should be enough with only the appcache (and a aux local storage) in order to get the attachments
...
...
@@ -106,7 +106,6 @@
remote_sub_storage
:
{
type
:
"
appcache
"
,
manifest
:
manifest
,
version
:
version
,
origin_url
:
origin_url
}
},
appcache_storage
,
...
...
@@ -140,10 +139,9 @@
.
push
(
function
(
attachment_dict
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
var
promise_list
=
[],
i
=
0
,
blob_urls
=
[
prefix
+
"
/
"
,
prefix
+
version
,
prefix
+
version
+
manifest
];
var
promise_list
=
[],
i
=
0
;
for
(
var
id
in
attachment_dict
)
{
if
(
blob_urls
.
indexOf
(
id
)
>=
0
)
{
if
(
id
.
indexOf
(
hateoas_script
)
===
-
1
)
{
promise_list
.
push
(
appcache_storage
.
getAttachment
(
origin_url
,
id
));
}
else
{
promise_list
.
push
(
appcache_storage
.
getAttachment
(
origin_url
,
id
,
{
"
format
"
:
"
json
"
}));
...
...
@@ -173,7 +171,7 @@
});
},
function
(
error
)
{
console
.
log
(
"
Error while appcache-local storage synchronization
"
);
console
.
log
(
error
)
;
throw
error
;
});
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.xml
View file @
448c8af0
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.2
4123.33456.1297
</string>
</value>
<value>
<string>
974.2
8676.40020.52309
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
1552
673890.26
</float>
<float>
1552
931000.35
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_controller_html.html
View file @
448c8af0
...
...
@@ -14,5 +14,14 @@
</head>
<body>
<form
novalidate
>
<button
type=
"submit"
class=
"ui-icon-edit ui-btn-icon-right ui-screen-hidden"
></button>
<!--
<div data-gadget-url="gadget_erp5_form.html"
data-gadget-scope="erp5_form"
data-gadget-sandbox="public">
</div>
-->
</form>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_controller_html.xml
View file @
448c8af0
...
...
@@ -229,7 +229,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
3.44981.11075.37051
</string>
</value>
<value>
<string>
97
4.24313.14346.54886
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -247,7 +247,7 @@
</tuple>
<state>
<tuple>
<float>
155
1184378.85
</float>
<float>
155
2670110.32
</float>
<string>
UTC
</string>
</tuple>
</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