Commit 0d21e7ec authored by Roque's avatar Roque

erp5_officejs_jquery_app: drop appcache in apps and migrate to service worker

- image editor
- web table editor
parent 965a8316
......@@ -413,7 +413,7 @@
</item>
<item>
<key> <string>configuration_cache_file</string> </key>
<value> <string>gadget_officejs_image_editor.appcache</string> </value>
<value> <string>WebSection_getPrecacheManifest</string> </value>
</item>
<item>
<key> <string>configuration_content_security_policy</string> </key>
......@@ -459,7 +459,7 @@
</item>
<item>
<key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs.appcache</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
......@@ -652,11 +652,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>
......@@ -700,16 +702,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>
......@@ -732,7 +738,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>973.33482.4166.8669</string> </value>
<value> <string>982.22379.33675.47718</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -750,7 +756,7 @@
</tuple>
<state>
<tuple>
<float>1549644558.58</float>
<float>1587472034.17</float>
<string>UTC</string>
</tuple>
</state>
......@@ -759,7 +765,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -349,6 +349,26 @@
<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>text</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>
</tuple>
</value>
</item>
......@@ -429,16 +449,29 @@
</item>
<item>
<key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs_image_editor.appcache</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_erp5_ojs_panel.html</string> </value>
</item>
<item>
<key> <string>configuration_precache_manifest_script_list</string> </key>
<value> <string>WebSection_getOfficeJsPrecacheManifestList\n
WebSection_getImageEditorPrecacheManifestList</string> </value>
</item>
<item>
<key> <string>configuration_router_gadget_url</string> </key>
<value> <string>gadget_officejs_image_editor_router.html</string> </value>
</item>
<item>
<key> <string>configuration_service_worker_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_translation_gadget_url</string> </key>
<value>
......@@ -606,11 +639,13 @@
</record>
<record id="6" aka="AAAAAAAAAAY=">
<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>
......@@ -654,16 +689,20 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<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>
......@@ -686,7 +725,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>977.56259.12514.2355</string> </value>
<value> <string>983.23018.40435.64631</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -704,7 +743,7 @@
</tuple>
<state>
<tuple>
<float>1568974271.56</float>
<float>1587729701.4</float>
<string>UTC</string>
</tuple>
</state>
......@@ -713,7 +752,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -249,11 +249,13 @@
</record>
<record id="6" aka="AAAAAAAAAAY=">
<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>
......@@ -299,16 +301,20 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<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>
......@@ -358,7 +364,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -413,7 +413,7 @@
</item>
<item>
<key> <string>configuration_cache_file</string> </key>
<value> <string>gadget_officejs_web_table.appcache</string> </value>
<value> <string>WebSection_getPrecacheManifest</string> </value>
</item>
<item>
<key> <string>configuration_content_security_policy</string> </key>
......@@ -459,7 +459,7 @@
</item>
<item>
<key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs.appcache</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
......@@ -652,11 +652,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>
......@@ -700,16 +702,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>
......@@ -732,7 +738,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>973.33482.4166.8669</string> </value>
<value> <string>982.22379.33675.47718</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -750,7 +756,7 @@
</tuple>
<state>
<tuple>
<float>1549644552.81</float>
<float>1587472035.67</float>
<string>UTC</string>
</tuple>
</state>
......@@ -759,7 +765,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -319,6 +319,26 @@
<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>text</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>
</tuple>
</value>
</item>
......@@ -381,16 +401,29 @@
</item>
<item>
<key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs_web_table.appcache</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_erp5_ojs_panel.html</string> </value>
</item>
<item>
<key> <string>configuration_precache_manifest_script_list</string> </key>
<value> <string>WebSection_getOfficeJsPrecacheManifestList\n
WebSection_getWebTableEditorPrecacheManifestList</string> </value>
</item>
<item>
<key> <string>configuration_router_gadget_url</string> </key>
<value> <string>gadget_officejs_web_table_router.html</string> </value>
</item>
<item>
<key> <string>configuration_service_worker_url</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_translation_gadget_url</string> </key>
<value>
......@@ -558,11 +591,13 @@
</record>
<record id="6" aka="AAAAAAAAAAY=">
<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>
......@@ -606,16 +641,20 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<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>
......@@ -638,7 +677,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>977.60651.48099.26299</string> </value>
<value> <string>983.23018.43853.17715</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -656,7 +695,7 @@
</tuple>
<state>
<tuple>
<float>1568973195.48</float>
<float>1587729708.72</float>
<string>UTC</string>
</tuple>
</state>
......@@ -665,7 +704,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -249,11 +249,13 @@
</record>
<record id="6" aka="AAAAAAAAAAY=">
<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>
......@@ -299,16 +301,20 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<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>
......@@ -358,7 +364,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
url_list = [
#image app specific
"gadget_officejs_image_editor.configuration",
"gadget_officejs_image_editor_router.html",
"gadget_officejs_jio_image_view.html",
"gadget_officejs_jio_image_view.js",
"gadget_officejs_image_editor.json",
"image_editor_app_logo.svg",
#image editor
"minipaint.gadget.html",
"minipaint.gadget.js",
"miniPaint/config.js",
"miniPaint/img/right.png",
"miniPaint/img/logo.png",
"miniPaint/img/colorwheel.png",
"miniPaint/img/favicon.png",
"miniPaint/img/preview.jpg",
"miniPaint/img/sprites.png",
"miniPaint/js/draw_tools.js",
"miniPaint/js/edit.js",
"miniPaint/js/effects.js",
"miniPaint/js/elements.js",
"miniPaint/js/events.js",
"miniPaint/js/file.js",
"miniPaint/js/gui.js",
"miniPaint/js/help.js",
"miniPaint/js/image.js",
"miniPaint/js/layers.js",
"miniPaint/js/main.js",
"miniPaint/js/tools.js",
"miniPaint/languages/de.js",
"miniPaint/languages/empty.js",
"miniPaint/languages/es.js",
"miniPaint/languages/fr.js",
"miniPaint/languages/it.js",
"miniPaint/languages/ja.js",
"miniPaint/languages/ko.js",
"miniPaint/languages/lt.js",
"miniPaint/languages/pt.js",
"miniPaint/languages/ru.js",
"miniPaint/languages/tr.js",
"miniPaint/languages/zh.js",
"miniPaint/libs/helpers.js",
"miniPaint/libs/popup.js",
"miniPaint/libs/sift.js",
"miniPaint/libs/vintage.js",
"miniPaint/styles/styles.css",
"miniPaint/vendor/exif/exif.js",
"miniPaint/vendor/exif/exif.min.js",
"miniPaint/vendor/file-saver/FileSaver.min.js",
"miniPaint/vendor/file-saver/canvas-toBlob.js",
"miniPaint/vendor/glfx/glfx.js",
"miniPaint/vendor/harmony/harmony.js",
"miniPaint/vendor/harmony/harmony.min.js",
"miniPaint/vendor/hermite-resize/hermite.js",
"miniPaint/vendor/hqx/hqx.js",
"miniPaint/vendor/hqx/hqx.min.js",
"miniPaint/vendor/imagefilters/imagefilters.js",
"miniPaint/vendor/imagefilters/imagefilters.min.js",
"miniPaint/vendor/jquery/jquery-migrate.js",
"miniPaint/vendor/jquery/jquery.js",
"miniPaint/vendor/menu/menu.js",
"miniPaint/vendor/menu/menu.min.js",
"miniPaint/vendor/translate/jquery.translate.js",
"miniPaint/vendor/translate/jquery.translate.min.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>REQUEST=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getImageEditorPrecacheManifestList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
url_list = [
#web table specific
"gadget_officejs_web_table.configuration",
"gadget_officejs_web_table_router.html",
"gadget_officejs_jio_web_table_view.html",
"gadget_officejs_jio_web_table_view.js",
"gadget_officejs_web_table.json",
"web_table_app_logo.svg",
#jquery-sheets
"jquery.js",
"jquery-sheets.gadget.html",
"jquery-sheets.gadget.js",
"jquery-sheets/wickedgrid.css",
"jquery-sheets/menu.html",
"jquery-sheets/font-awesome.css",
"jquery-sheets/js/thaw.js",
"jquery-sheets/js/raphael.js",
"jquery-sheets/js/copy3_of_undomanager.js",
"jquery-sheets/js/jquery-ui.js",
"jquery-sheets/js/globalize.js",
"jquery-sheets/js/jquery.nearest.js",
"jquery-sheets/js/megatable.js",
"jquery-sheets/js/wickedgrid.js",
"jquery-sheets/js/graphael/g.bar.js",
"jquery-sheets/js/graphael/g.line.js",
"jquery-sheets/js/graphael/g.raphael.js",
"jquery-sheets/js/graphael/g.pie.js",
"jquery-sheets/js/graphael/g.dot.js",
"jquery-sheets/js/ZeroClipboard.js",
"jquery-sheets/js/jquery.elastic.source.js",
"jquery-sheets/js/infiniscroll.js",
"jquery-sheets/js/undomanager.js",
"jquery-sheets/js/MouseWheel.js",
"jquery-sheets/bootstrap-theme.css",
"jquery-sheets/images/underline1.svg",
"jquery-sheets/images/strikethrough.svg",
"jquery-sheets/images/right183.svg",
"jquery-sheets/images/left181.svg",
"jquery-sheets/images/centered5.svg",
"jquery-sheets/images/italic3.svg",
"jquery-sheets/images/bold13.svg",
"jquery-sheets/bootstrap.css",
]
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>REQUEST=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getWebTableEditorPrecacheManifestList</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