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
138
Merge Requests
138
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
a43f5e08
Commit
a43f5e08
authored
Mar 20, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: attempt to fix unit test appcache sync
parent
7a1b1bc2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
11 deletions
+25
-11
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_appcache.xml
..._page_module/gadget_officejs_discussion_tool_appcache.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
...web_page_module/gadget_officejs_jio_appcachestorage_js.js
+10
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
...eb_page_module/gadget_officejs_jio_appcachestorage_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.js
...athTemplateItem/web_page_module/gadget_officejs_jio_js.js
+8
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.xml
...thTemplateItem/web_page_module/gadget_officejs_jio_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_discussion_tool_appcache.xml
View file @
a43f5e08
...
...
@@ -229,7 +229,7 @@ gadget_officejs_discussion_tool_router.html\n
/\n
app/\n
gadget_officejs_discussion_tool.configuration\n
app/gadget_officejs_discussion_tool.configuration\n
#
app/gadget_officejs_discussion_tool.configuration\n
gadget_officejs_discussion_tool.json\n
gadget_officejs_bootloader.js\n
gadget_officejs_bootloader_presentation.html\n
...
...
@@ -734,7 +734,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.
29931.57668.55773
</string>
</value>
<value>
<string>
974.
30099.13229.45585
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -752,7 +752,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
15530
16192.1
</float>
<float>
15530
84611.2
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
View file @
a43f5e08
...
...
@@ -10,6 +10,8 @@
this
.
_take_installer
=
spec
.
take_installer
||
false
;
this
.
_origin_url
=
spec
.
origin_url
!==
undefined
?
spec
.
origin_url
:
window
.
location
.
href
;
console
.
log
(
"
[DEBUG] APPCACHESTORAGE window.location.href:
"
);
console
.
log
(
window
.
location
.
href
);
this
.
_version
=
spec
.
version
||
""
;
this
.
_prefix
=
spec
.
prefix
||
"
./
"
;
this
.
_documents
=
{};
...
...
@@ -138,7 +140,14 @@
if
(
!
error
.
message
)
{
console
.
log
(
"
error getting the manifest:
"
);
console
.
log
(
error
);
error
.
message
=
"
Can't get manifest. URL:
"
+
url
;
var
info
=
"
.
"
;
if
(
error
.
currentTarget
)
{
info
+=
"
status:
"
+
error
.
currentTarget
.
status
;
info
+=
"
. response:
"
+
error
.
currentTarget
.
response
;
}
else
{
info
+=
"
error.currentTarget:
"
+
error
.
currentTarget
;
}
error
.
message
=
"
Can't get manifest. URL:
"
+
url
+
info
;
}
throw
error
;
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
View file @
a43f5e08
...
...
@@ -237,7 +237,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.3
0192.60926.39594
</string>
</value>
<value>
<string>
974.3
1277.33067.51916
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -255,7 +255,7 @@
</tuple>
<state>
<tuple>
<float>
15530
21879.6
9
</float>
<float>
15530
86893.3
9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.js
View file @
a43f5e08
...
...
@@ -75,7 +75,8 @@
.
declareMethod
(
'
createJio
'
,
function
(
jio_options
)
{
var
gadget
=
this
,
origin_url
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
hostname
+
window
.
location
.
pathname
,
//origin_url = window.location.protocol + "//" + window.location.hostname + window.location.pathname,
origin_url
=
window
.
location
.
href
,
prefix
=
"
./
"
,
hateoas_script
=
"
hateoas/ERP5Document_getHateoas
"
,
// TODO manifest should come from gadget.props.cache_file -add script in html body
...
...
@@ -103,12 +104,16 @@
local_sub_storage
:
{},
remote_sub_storage
:
{
type
:
"
appcache
"
,
manifest
:
manifest
,
origin_url
:
origin_url
manifest
:
manifest
/*
,
origin_url: origin_url
*/
}
},
appcache_storage
,
sync_flag
=
"
appcache-stored
"
,
configuration_ids_dict
=
{};
console
.
log
(
"
[DEBUG] JIO GADGET window.location.href:
"
);
console
.
log
(
window
.
location
.
href
);
console
.
log
(
"
[DEBUG] JIO GADGET generated origin_url:
"
);
console
.
log
(
origin_url
);
if
(
jio_options
===
undefined
)
{
return
;
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_js.xml
View file @
a43f5e08
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.3
0189.58056.44066
</string>
</value>
<value>
<string>
974.3
1278.59358.47462
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
15530
21741.56
</float>
<float>
15530
86979.81
</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