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
Lukas Niegsch
erp5
Commits
f6d5e976
Commit
f6d5e976
authored
Feb 02, 2022
by
Roque
Browse files
Options
Browse Files
Download
Plain Diff
Officejs appstore improvements
See merge request
nexedi/erp5!1544
parents
e89e053a
dcc4ac73
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.js
...m/web_page_module/gadget_ojs_appstore_redirect_page_js.js
+11
-6
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.xml
.../web_page_module/gadget_ojs_appstore_redirect_page_js.xml
+2
-2
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list/template.xml
...emplateItem/web_site_module/application-list/template.xml
+3
-3
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSRedirectAppCache.py
...ppstore_base/WebSection_renderOfficeJSRedirectAppCache.py
+2
-1
No files found.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.js
View file @
f6d5e976
/*globals window, document, RSVP, rJS, navigator*/
/*globals window, document, RSVP, rJS, navigator
, console
*/
/*jslint indent: 2, maxlen: 80, nomen: true*/
/*jslint indent: 2, maxlen: 80, nomen: true*/
(
function
(
window
,
document
,
RSVP
,
rJS
,
navigator
)
{
(
function
(
window
,
document
,
RSVP
,
rJS
,
navigator
,
console
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -13,9 +13,14 @@
...
@@ -13,9 +13,14 @@
// Make this redirection compatible with no-service-worker browsers
// Make this redirection compatible with no-service-worker browsers
if
(
'
serviceWorker
'
in
navigator
)
{
if
(
'
serviceWorker
'
in
navigator
)
{
queue
.
push
(
function
()
{
queue
.
push
(
function
()
{
return
navigator
.
serviceWorker
.
register
(
return
navigator
.
serviceWorker
"
gadget_erp5_serviceworker.js
"
);
.
register
(
"
gadget_erp5_serviceworker.js
"
);
});
})
.
push
(
undefined
,
function
(
error
)
{
// If service worker installation is rejected,
// do not prevent the site to be usable, even if slower
console
.
warn
(
"
Service worker registration failed
"
,
error
);
});
}
}
return
queue
return
queue
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -24,4 +29,4 @@
...
@@ -24,4 +29,4 @@
});
});
});
});
}(
window
,
document
,
RSVP
,
rJS
,
navigator
));
}(
window
,
document
,
RSVP
,
rJS
,
navigator
,
console
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.xml
View file @
f6d5e976
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
6.52764.3468.58419
</string>
</value>
<value>
<string>
99
7.60607.41300.1194
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
39416568.49
</float>
<float>
16
43817599.53
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list/template.xml
View file @
f6d5e976
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
<value>
<value>
<tuple>
<tuple>
<string>
aggregate/web_page_module/gadget_ojs_appstore_redirect_page_html
</string>
<string>
aggregate/web_page_module/gadget_ojs_appstore_redirect_page_html
</string>
<string>
caching_policy/
one-hour-max-modification-
date
</string>
<string>
caching_policy/
must-revali
date
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
@@ -453,7 +453,7 @@
...
@@ -453,7 +453,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
6.31313.30780.31453
</string>
</value>
<value>
<string>
99
7.52157.222.47308
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -471,7 +471,7 @@
...
@@ -471,7 +471,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
39493797.36
</float>
<float>
16
43636982.9
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSRedirectAppCache.py
View file @
f6d5e976
...
@@ -14,4 +14,5 @@ response.setHeader('Content-Type', 'text/cache-manifest')
...
@@ -14,4 +14,5 @@ response.setHeader('Content-Type', 'text/cache-manifest')
response
.
setHeader
(
'Cache-Control'
,
'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public'
)
response
.
setHeader
(
'Cache-Control'
,
'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public'
)
return
"""CACHE MANIFEST
return
"""CACHE MANIFEST
# %s / %s"""
%
(
context
.
getLayoutProperty
(
"configuration_latest_version"
,
default
=
"development"
),
modification_date
)
CACHE:
NETWORK:"""
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