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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
6900195c
Commit
6900195c
authored
Apr 22, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: update exporter app to use new precache storage to generate the app zip files
parent
e594e132
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
363 additions
and
319 deletions
+363
-319
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.html
...tem/web_page_module/gadget_officejs_page_export_html.html
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.xml
...Item/web_page_module/gadget_officejs_page_export_html.xml
+163
-151
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
...ateItem/web_page_module/gadget_officejs_page_export_js.js
+36
-17
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
...teItem/web_page_module/gadget_officejs_page_export_js.xml
+163
-151
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.html
View file @
6900195c
...
...
@@ -17,6 +17,7 @@
<script
src=
"zipfilestorage-with-jszip.js"
></script>
<script
src=
"jio_filesystemstorage.js"
></script>
<script
src=
"jio_appcachestorage.js"
></script>
<script
src=
"jio_precachestorage.js"
></script>
</head>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_html.xml
View file @
6900195c
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
View file @
6900195c
...
...
@@ -6,18 +6,23 @@
var
origin_url
=
(
window
.
location
.
origin
+
window
.
location
.
pathname
)
.
replace
(
"
officejs_export/
"
,
""
),
precache_manifest
=
"
WebSection_getPrecacheManifest
"
,
//TODO get rid of this old HARDCODED app dict and get everything from config
application_dict
=
{
"
Text Editor
"
:
{
"
url
"
:
"
officejs_text_editor/
"
,
"
cache
"
:
"
gadget_officejs_text_editor.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Smart Assistant
"
:
{
"
url
"
:
"
officejs_smart_assistant/
"
,
"
cache
"
:
"
gadget_smart_assistant.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Media Player
"
:
{
"
url
"
:
"
officejs_media_player/
"
,
"
cache
"
:
"
gadget_officejs_media_player.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Notebook
"
:
{
"
url
"
:
"
officejs_notebook/
"
,
...
...
@@ -25,11 +30,13 @@
},
"
Illustration Editor
"
:
{
"
url
"
:
"
officejs_svg_editor/
"
,
"
cache
"
:
"
gadget_officejs_illustration.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
PDF Viewer
"
:
{
"
url
"
:
"
officejs_pdf_viewer/
"
,
"
cache
"
:
"
gadget_officejs_pdf_viewer.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Cribjs
"
:
{
"
url
"
:
"
officejs_cribjs/
"
,
...
...
@@ -37,31 +44,38 @@
},
"
Bookmark Manager
"
:
{
"
url
"
:
"
officejs_bookmark_manager/
"
,
"
cache
"
:
"
gadget_officejs_bookmark_manager.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Onlyoffice Text
"
:
{
"
url
"
:
"
ooffice_text/
"
,
"
cache
"
:
"
gadget_ooffice_text.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Onlyoffice Spreadsheet
"
:
{
"
url
"
:
"
ooffice_spreadsheet/
"
,
"
cache
"
:
"
gadget_ooffice_spreadsheet.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Onlyoffice Presentation
"
:
{
"
url
"
:
"
ooffice_presentation/
"
,
"
cache
"
:
"
gadget_ooffice_presentation.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Web Table Editor
"
:
{
"
url
"
:
"
officejs_web_table_editor/
"
,
"
cache
"
:
"
gadget_officejs_web_table.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Image Editor
"
:
{
"
url
"
:
"
officejs_image_editor/
"
,
"
cache
"
:
"
gadget_officejs_image_editor.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Awesome Free Software Publisher List
"
:
{
"
url
"
:
"
afs/
"
,
"
cache
"
:
"
gadget_erp5_afs.appcache
"
,
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
,
"
no_installer
"
:
true
},
"
Jabber Client
"
:
{
...
...
@@ -99,7 +113,8 @@
},
"
Drive App
"
:
{
"
url
"
:
"
officejs_drive_app/
"
,
"
cache
"
:
"
gadget_officejs_drive_app.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
},
"
Travel Expense
"
:
{
"
url
"
:
"
officejs_hr/
"
,
...
...
@@ -108,7 +123,8 @@
},
"
Javascript editor (CodeMirror)
"
:
{
"
url
"
:
"
officejs_codemirror/
"
,
"
cache
"
:
"
gadget_officejs_codemirror.appcache
"
"
storage_type
"
:
"
precache
"
,
"
cache
"
:
precache_manifest
}
};
...
...
@@ -125,7 +141,8 @@
app
=
application_dict
[
form_result
.
web_site
];
zip_name
=
form_result
.
filename
;
return
gadget
.
fillZip
(
app
.
cache
,
origin_url
+
app
.
url
,
app
.
no_installer
)
return
gadget
.
fillZip
(
app
.
storage_type
,
app
.
cache
,
origin_url
+
app
.
url
,
app
.
no_installer
)
.
push
(
function
(
zip_file
)
{
var
element
=
gadget
.
element
,
a
=
document
.
createElement
(
"
a
"
),
...
...
@@ -146,7 +163,8 @@
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
.
declareMethod
(
"
fillZip
"
,
function
(
cache_file
,
site_url
,
no_installer
)
{
.
declareMethod
(
"
fillZip
"
,
function
(
storage_type
,
cache_file
,
site_url
,
no_installer
)
{
var
file_storage
=
jIO
.
createJIO
({
type
:
"
replicate
"
,
conflict_handling
:
2
,
...
...
@@ -160,7 +178,8 @@
type
:
"
filesystem
"
,
document
:
site_url
,
sub_storage
:
{
type
:
"
appcache
"
,
//keep appcache as default for backward compatibility
type
:
storage_type
||
"
appcache
"
,
take_installer
:
no_installer
===
undefined
,
manifest
:
cache_file
,
origin_url
:
site_url
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
View file @
6900195c
This diff is collapsed.
Click to expand it.
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