Commit 638f2733 authored by Roque's avatar Roque

erp5_officejs: migrate from appcache to service worker

parent 5106d08c
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
}, },
"Notebook": { "Notebook": {
"url": "officejs_notebook/", "url": "officejs_notebook/",
"cache": "gadget_officejs_notebook.appcache" "storage_type": "precache",
"cache": precache_manifest
}, },
"Illustration Editor": { "Illustration Editor": {
"url": "officejs_svg_editor/", "url": "officejs_svg_editor/",
......
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>985.28933.8790.47291</string> </value> <value> <string>986.21093.7100.63419</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1595583362.3</float> <float>1600969351.28</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
</item> </item>
<item> <item>
<key> <string>configuration_cache_file</string> </key> <key> <string>configuration_cache_file</string> </key>
<value> <string>gadget_officejs_notebook.appcache</string> </value> <value> <string>WebSection_getPrecacheManifest</string> </value>
</item> </item>
<item> <item>
<key> <string>configuration_content_security_policy</string> </key> <key> <string>configuration_content_security_policy</string> </key>
...@@ -710,7 +710,7 @@ ...@@ -710,7 +710,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>973.33482.4166.8669</string> </value> <value> <string>985.55188.13524.39168</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -728,7 +728,7 @@ ...@@ -728,7 +728,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1549887982.52</float> <float>1600960361.5</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -290,6 +290,16 @@ ...@@ -290,6 +290,16 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </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>text</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -354,12 +364,19 @@ ...@@ -354,12 +364,19 @@
</item> </item>
<item> <item>
<key> <string>configuration_manifest_url</string> </key> <key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs_notebook.appcache</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>configuration_panel_gadget_url</string> </key> <key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_erp5_ojs_panel.html</string> </value> <value> <string>gadget_erp5_ojs_panel.html</string> </value>
</item> </item>
<item>
<key> <string>configuration_precache_manifest_script_list</string> </key>
<value> <string>WebSection_getOfficeJsPrecacheManifestList\n
WebSection_getNotebookEditorPrecacheManifestList</string> </value>
</item>
<item> <item>
<key> <string>configuration_router_gadget_url</string> </key> <key> <string>configuration_router_gadget_url</string> </key>
<value> <string>gadget_officejs_notebook_router.html</string> </value> <value> <string>gadget_officejs_notebook_router.html</string> </value>
...@@ -653,7 +670,7 @@ ...@@ -653,7 +670,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>973.33482.4166.8669</string> </value> <value> <string>986.54258.39512.58453</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -671,7 +688,7 @@ ...@@ -671,7 +688,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1549887971.4</float> <float>1600969519.71</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>42.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_officejs_notebook</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
url_list = [
"gadget_officejs_notebook.json",
"nexedi_logo_officejs_iodide.svg",
"gadget_officejs_notebook_router.html",
"gadget_officejs_jio_notebook_view.html",
"gadget_officejs_jio_notebook_view.js",
"gadget_erp5_page_ojs_upload.js",
"gadget_erp5_page_ojs_upload.html",
"gadget_erp5_page_ojs_download.js",
"gadget_erp5_page_ojs_download.html",
"gadget_erp5_page_ojs_notebook_list.js",
"gadget_erp5_page_ojs_notebook_list.html",
"gadget_jsmd_viewer.css",
"gadget_jsmd_viewer.html",
"gadget_jsmd_viewer.js",
"gadget_jsmd_eval.html",
"gadget_jsmd_eval.js",
"gadget_jsmd_eval.css",
"iodide_utils.js",
"marked.js",
"cycler.data",
"cycler.js",
"kiwisolver.data",
"kiwisolver.js",
"matplotlib.js",
"numpy.data",
"matplotlib.data",
"numpy.js",
"packages.json",
"pyodide.asm.js",
"pyodide.asm.data.js",
"pyodide.asm.data",
"pyodide.asm.wasm",
"pandas.js",
"pyodide.asm.html",
"pyparsing.data",
"pyparsing.js",
"python-dateutil.data",
"python-dateutil.js",
"pytz.data",
"pytz.js",
"xlrd.data",
"xlrd.js",
"gadget_erp5_page_ojs_controller.html",
"gadget_erp5_page_ojs_controller.js",
"gadget_erp5_page_ojs_add_document.html",
"gadget_erp5_page_ojs_add_document.js",
"gadget_erp5_page_ojs_document_list.html",
"gadget_erp5_page_ojs_document_list.js"
]
return url_list
<?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></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getNotebookEditorPrecacheManifestList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment