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
139
Merge Requests
139
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
8e017b3d
Commit
8e017b3d
authored
Mar 11, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_support_request_ui: switch to service worker
parent
b59527b7
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
349 additions
and
234 deletions
+349
-234
bt5/erp5_officejs_support_request_ui/PathTemplateItem/web_page_module/gadget_supportrequest_appcache.xml
...teItem/web_page_module/gadget_supportrequest_appcache.xml
+3
-98
bt5/erp5_officejs_support_request_ui/PathTemplateItem/web_site_module/erp5_officejs_support_request_ui.xml
...Item/web_site_module/erp5_officejs_support_request_ui.xml
+180
-101
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/WebSection_getOfficeJSSupportRequestPrecacheManifestList.py
...bSection_getOfficeJSSupportRequestPrecacheManifestList.py
+32
-0
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/WebSection_getOfficeJSSupportRequestPrecacheManifestList.xml
...Section_getOfficeJSSupportRequestPrecacheManifestList.xml
+62
-0
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCacheManifest.zpt
...s/officejs_support_request_ui_zuite/testCacheManifest.zpt
+0
-33
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testServiceWorker.xml
...s/officejs_support_request_ui_zuite/testServiceWorker.xml
+2
-2
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testServiceWorker.zpt
...s/officejs_support_request_ui_zuite/testServiceWorker.zpt
+70
-0
No files found.
bt5/erp5_officejs_support_request_ui/PathTemplateItem/web_page_module/gadget_supportrequest_appcache.xml
View file @
8e017b3d
...
...
@@ -110,104 +110,9 @@
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
CACHE MANIFEST\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/02/17 16:16:51.566799 UTC\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/02/13 13:51:46.356107 UTC\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/02/11 16:57:3.037725 UTC\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/02/04 16:03:51.837109 UTC\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/01/31 13:14:58.259778 UTC\n
# Last modified by WebSite_checkCacheModificationDateConsistency on 2020/01/30 16:25:52.091689 UTC\n
# v1.0.6\n
CACHE:\n
font-awesome/font-awesome-webfont.woff2\n
echarts-all.js\n
erp5_launcher_nojqm.js\n
erp5_officejs_support_request_ui/\n
favicon.ico\n
gadget_erp5_editor_panel.html\n
gadget_erp5_editor_panel.js\n
gadget_erp5_field_datetime.html\n
gadget_erp5_field_datetime.js\n
gadget_erp5_field_file.html\n
gadget_erp5_field_file.js\n
gadget_erp5_field_gadget.html\n
gadget_erp5_field_gadget.js\n
gadget_erp5_field_list.html\n
gadget_erp5_field_list.js\n
gadget_erp5_field_listbox.html\n
gadget_erp5_field_listbox.js\n
gadget_erp5_field_relationstring.html\n
gadget_erp5_field_relationstring.js\n
gadget_erp5_field_string.html\n
gadget_erp5_field_string.js\n
gadget_erp5_form.html\n
gadget_erp5_form.js\n
gadget_erp5_global.js\n
gadget_erp5_header.html\n
gadget_erp5_header.js\n
gadget_erp5_jio.html\n
gadget_erp5_jio.js\n
gadget_erp5_label_field.html\n
gadget_erp5_label_field.js\n
gadget_erp5_nojqm.css\n
gadget_erp5_notification.html\n
gadget_erp5_notification.js\n
gadget_erp5_page_form.html\n
gadget_erp5_page_form.js\n
gadget_erp5_page_homepage.css\n
gadget_erp5_page_homepage.html\n
gadget_erp5_page_homepage.js\n
gadget_supportrequest_header.html\n
gadget_supportrequest_header.js\n
gadget_erp5_page_supportrequest_preference.html\n
gadget_erp5_page_supportrequest_preference.js\n
gadget_erp5_page_support_request_fast_view_dialog.html\n
gadget_erp5_page_support_request_fast_view_dialog.js\n
gadget_erp5_panel.png?format=png\n
gadget_erp5_pt_form_dialog.html\n
gadget_erp5_pt_form_dialog.js\n
gadget_erp5_pt_form_list.html\n
gadget_erp5_pt_form_list.js\n
gadget_erp5_pt_form_list_sr.html\n
gadget_erp5_pt_form_list_sr.js\n
gadget_erp5_pt_form_view_discussable.css\n
gadget_erp5_pt_form_view_discussable.html\n
gadget_erp5_pt_form_view_discussable.js\n
gadget_erp5_relation_input.html\n
gadget_erp5_relation_input.js\n
gadget_erp5_router.html\n
gadget_erp5_router.js\n
gadget_erp5_searchfield.html\n
gadget_erp5_searchfield.js\n
gadget_field_graph_echarts.html\n
gadget_field_graph_echarts.js\n
gadget_global.js\n
gadget_html5_element.html\n
gadget_html5_element.js\n
gadget_html5_input.html\n
gadget_html5_input.js\n
gadget_html5_select.html\n
gadget_html5_select.js\n
gadget_jio.html\n
gadget_jio.js\n
gadget_supportrequest_page_worklist.html\n
gadget_supportrequest_page_worklist.js\n
gadget_supportrequest_panel.html\n
gadget_supportrequest_panel.js\n
gadget_translation.html\n
gadget_translation.js\n
gadget_translation_data.js\n
handlebars.js\n
domsugar.js\n
jiodev.js\n
renderjs.js\n
rsvp.js\n
\n
GADGET:\n
officejs_ckeditor_gadget/\n
\n
NETWORK:\n
*\n
</string>
</value>
*
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -354,7 +259,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
1.59441.37027.22988
</string>
</value>
<value>
<string>
98
2.26881.14545.28757
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -372,7 +277,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
158
2043197.58
</float>
<float>
158
3931913.54
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_support_request_ui/PathTemplateItem/web_site_module/erp5_officejs_support_request_ui.xml
View file @
8e017b3d
...
...
@@ -283,6 +283,36 @@
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
preferred_event_resource
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_service_worker_url
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_precache_manifest_script_list
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
...
...
@@ -356,12 +386,23 @@
</item>
<item>
<key>
<string>
configuration_manifest_url
</string>
</key>
<value>
<string>
gadget_supportrequest.appcache
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
configuration_panel_gadget_url
</string>
</key>
<value>
<string>
gadget_supportrequest_panel.html
</string>
</value>
</item>
<item>
<key>
<string>
configuration_precache_manifest_script_list
</string>
</key>
<value>
<string>
WebSection_getCKEditorPrecacheManifestList\n
WebSection_getOfficeJSSupportRequestPrecacheManifestList
</string>
</value>
</item>
<item>
<key>
<string>
configuration_service_worker_url
</string>
</key>
<value>
<string>
gadget_erp5_serviceworker.js
</string>
</value>
</item>
<item>
<key>
<string>
configuration_translation_gadget_url
</string>
</key>
<value>
<string>
gadget_translation.html
</string>
</value>
...
...
@@ -396,14 +437,32 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_officejs_support_request_ui
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
layout_configuration_form_id
</string>
</key>
<value>
<string>
WebSection_viewRenderJSPreference
</string>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Site
</string>
</value>
</item>
<item>
<key>
<string>
preferred_event_resource
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
...
...
@@ -418,6 +477,18 @@
<key>
<string>
static_language_selection
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Support Request
</string>
</value>
...
...
@@ -525,11 +596,13 @@
</record>
<record
id=
"9"
aka=
"AAAAAAAAAAk="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
...
...
@@ -573,16 +646,20 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"10"
aka=
"AAAAAAAAAAo="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
...
...
@@ -605,7 +682,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.24251.9601.61269
</string>
</value>
<value>
<string>
982.29727.7957.30481
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -623,8 +700,8 @@
</tuple>
<state>
<tuple>
<float>
1540870022.36
</float>
<string>
GMT+9
</string>
<float>
1583932953.01
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
...
...
@@ -632,7 +709,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/WebSection_getOfficeJSSupportRequestPrecacheManifestList.py
0 → 100644
View file @
8e017b3d
url_list
=
[
'handlebars.js'
,
'gadget_supportrequest_header.html'
,
'gadget_supportrequest_header.js'
,
'gadget_erp5_page_homepage.css'
,
'gadget_erp5_page_homepage.html'
,
'gadget_erp5_page_homepage.js'
,
'gadget_erp5_page_supportrequest_preference.html'
,
'gadget_erp5_page_supportrequest_preference.js'
,
'gadget_erp5_page_support_request_fast_view_dialog.html'
,
'gadget_erp5_page_support_request_fast_view_dialog.js'
,
'gadget_erp5_pt_form_list_sr.html'
,
'gadget_erp5_pt_form_list_sr.js'
,
'gadget_erp5_pt_form_view_discussable.css'
,
'gadget_erp5_pt_form_view_discussable.html'
,
'gadget_erp5_pt_form_view_discussable.js'
,
'gadget_field_graph_echarts.html'
,
'gadget_field_graph_echarts.js'
,
'gadget_supportrequest_page_worklist.html'
,
'gadget_supportrequest_page_worklist.js'
,
'gadget_supportrequest_panel.html'
,
'gadget_supportrequest_panel.js'
,
# Echarts. Should probably be a separated script
'unsafe/gadget_field_graph_echarts.html/'
,
'unsafe/gadget_field_graph_echarts.html/rsvp.js'
,
'unsafe/gadget_field_graph_echarts.html/renderjs.js'
,
'unsafe/gadget_field_graph_echarts.html/echarts-all.js'
,
'unsafe/gadget_field_graph_echarts.html/gadget_global.js'
,
'unsafe/gadget_field_graph_echarts.html/unsafe/gadget_field_graph_echarts.js'
,
]
return
url_list
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/WebSection_getOfficeJSSupportRequestPrecacheManifestList.xml
0 → 100644
View file @
8e017b3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebSection_getOfficeJSSupportRequestPrecacheManifestList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCacheManifest.zpt
deleted
100644 → 0
View file @
b59527b7
<html>
<head>
<title
tal:content=
"template/title"
></title>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Cache Manifest can be fully loaded
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_officejs_support_request_ui/
</td>
<td></td>
</tr>
<!-- Make sure the application cache can load all the manifest -->
<tr>
<td>
waitForCondition
</td>
<td>
selenium.browserbot.currentWindow.applicationCache.status !== window.applicationCache.DOWNLOADING
</td>
<td>
600000
</td>
</tr>
<tr>
<td>
assertEval
</td>
<td>
selenium.browserbot.currentWindow.applicationCache.status !== window.applicationCache.UNCACHED
</td>
<td>
true
</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/test
CacheManifest
.xml
→
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/test
ServiceWorker
.xml
View file @
8e017b3d
...
...
@@ -42,7 +42,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test
CacheManifest
</string>
</value>
<value>
<string>
test
ServiceWorker
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode>
Cache Manifest
can be fully loaded
</unicode>
</value>
<value>
<unicode>
Service Worker
can be fully loaded
</unicode>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testServiceWorker.zpt
0 → 100644
View file @
8e017b3d
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test RenderJS UI
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test RenderJS UI
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tr>
<td
colspan=
"3"
><b
tal:content=
"python: 'Clone web site'"
></b></td>
</tr>
<tr>
<td>
open
</td>
<td
tal:content=
"python: '${base_url}/web_site_module/erp5_officejs_support_request_ui?ignore_layout:int=1&editable_mode:int=1'"
></td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
install_url
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${install_url}/#/?page=test_service_worker
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded"
/>
<tr>
<td>
assertTextPresent
</td>
<td>
Has SW: false
</td>
<td></td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
Has SW: true
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Has SW: true
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
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