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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
erp5
Commits
3a8a824e
Commit
3a8a824e
authored
Sep 21, 2018
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] cleanup gadget_officejs_page_export.js
Don't change anything, just make it pass the linter.
parent
839aff04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
144 deletions
+142
-144
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
...ateItem/web_page_module/gadget_officejs_page_export_js.js
+140
-142
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
...teItem/web_page_module/gadget_officejs_page_export_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
View file @
3a8a824e
/*globals window, RSVP, rJS,
loopEventListener, URL, document
/*globals window, RSVP, rJS,
jIO, loopEventListener, URL, document */
FileReader, console, navigator
*/
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80
*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
navigator
,
RSVP
,
rJS
,
jIO
,
URL
)
{
(
function
(
window
,
RSVP
,
rJS
,
jIO
,
URL
)
{
"
use strict
"
;
"
use strict
"
;
var
origin_url
=
(
window
.
location
.
origin
+
window
.
location
.
pathname
)
.
replace
(
var
origin_url
=
(
window
.
location
.
origin
+
window
.
location
.
pathname
)
"
officejs_export/
"
,
""
),
.
replace
(
"
officejs_export/
"
,
""
),
application_dict
=
{
application_dict
=
{
"
Text Editor
"
:
{
"
Text Editor
"
:
{
"
url
"
:
"
officejs_text_editor/
"
,
"
url
"
:
"
officejs_text_editor/
"
,
"
cache
"
:
"
gadget_officejs_text_editor.appcache
"
"
cache
"
:
"
gadget_officejs_text_editor.appcache
"
},
},
"
Smart Assistant
"
:
{
"
Smart Assistant
"
:
{
"
url
"
:
"
officejs_smart_assistant/
"
,
"
url
"
:
"
officejs_smart_assistant/
"
,
"
cache
"
:
"
gadget_smart_assistant.appcache
"
"
cache
"
:
"
gadget_smart_assistant.appcache
"
},
},
"
Media Player
"
:
{
"
Media Player
"
:
{
"
url
"
:
"
officejs_media_player/
"
,
"
url
"
:
"
officejs_media_player/
"
,
"
cache
"
:
"
gadget_officejs_media_player.appcache
"
"
cache
"
:
"
gadget_officejs_media_player.appcache
"
},
},
"
Notebook
"
:
{
"
Notebook
"
:
{
"
url
"
:
"
officejs_notebook/
"
,
"
url
"
:
"
officejs_notebook/
"
,
"
cache
"
:
"
gadget_officejs_notebook.appcache
"
"
cache
"
:
"
gadget_officejs_notebook.appcache
"
},
},
"
Illustration Editor
"
:
{
"
Illustration Editor
"
:
{
"
url
"
:
"
officejs_svg_editor/
"
,
"
url
"
:
"
officejs_svg_editor/
"
,
"
cache
"
:
"
gadget_officejs_illustration.appcache
"
"
cache
"
:
"
gadget_officejs_illustration.appcache
"
},
},
"
PDF Viewer
"
:
{
"
PDF Viewer
"
:
{
"
url
"
:
"
officejs_pdf_viewer/
"
,
"
url
"
:
"
officejs_pdf_viewer/
"
,
"
cache
"
:
"
gadget_officejs_pdf_viewer.appcache
"
"
cache
"
:
"
gadget_officejs_pdf_viewer.appcache
"
},
},
"
Cribjs
"
:
{
"
Cribjs
"
:
{
"
url
"
:
"
officejs_cribjs/
"
,
"
url
"
:
"
officejs_cribjs/
"
,
"
cache
"
:
"
gadget_officejs_crib.appcache
"
"
cache
"
:
"
gadget_officejs_crib.appcache
"
},
},
"
Bookmark Manager
"
:
{
"
Bookmark Manager
"
:
{
"
url
"
:
"
officejs_bookmark_manager/
"
,
"
url
"
:
"
officejs_bookmark_manager/
"
,
"
cache
"
:
"
gadget_officejs_bookmark_manager.appcache
"
"
cache
"
:
"
gadget_officejs_bookmark_manager.appcache
"
},
},
"
Onlyoffice Text
"
:
{
"
Onlyoffice Text
"
:
{
"
url
"
:
"
ooffice_text/
"
,
"
url
"
:
"
ooffice_text/
"
,
"
cache
"
:
"
gadget_ooffice_text.appcache
"
"
cache
"
:
"
gadget_ooffice_text.appcache
"
},
},
"
Onlyoffice Spreadsheet
"
:
{
"
Onlyoffice Spreadsheet
"
:
{
"
url
"
:
"
ooffice_spreadsheet/
"
,
"
url
"
:
"
ooffice_spreadsheet/
"
,
"
cache
"
:
"
gadget_ooffice_spreadsheet.appcache
"
"
cache
"
:
"
gadget_ooffice_spreadsheet.appcache
"
},
},
"
Onlyoffice Presentation
"
:
{
"
Onlyoffice Presentation
"
:
{
"
url
"
:
"
ooffice_presentation/
"
,
"
url
"
:
"
ooffice_presentation/
"
,
"
cache
"
:
"
gadget_ooffice_presentation.appcache
"
"
cache
"
:
"
gadget_ooffice_presentation.appcache
"
},
},
"
Web Table Editor
"
:
{
"
Web Table Editor
"
:
{
"
url
"
:
"
officejs_web_table_editor/
"
,
"
url
"
:
"
officejs_web_table_editor/
"
,
"
cache
"
:
"
gadget_officejs_web_table.appcache
"
"
cache
"
:
"
gadget_officejs_web_table.appcache
"
},
},
"
Image Editor
"
:
{
"
Image Editor
"
:
{
"
url
"
:
"
officejs_image_editor/
"
,
"
url
"
:
"
officejs_image_editor/
"
,
"
cache
"
:
"
gadget_officejs_image_editor.appcache
"
"
cache
"
:
"
gadget_officejs_image_editor.appcache
"
},
},
"
Awesome Free Software Publisher List
"
:
{
"
Awesome Free Software Publisher List
"
:
{
"
url
"
:
"
afs/
"
,
"
url
"
:
"
afs/
"
,
"
cache
"
:
"
gadget_erp5_afs.appcache
"
,
"
cache
"
:
"
gadget_erp5_afs.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
Jabber Client
"
:
{
"
Jabber Client
"
:
{
"
url
"
:
"
jabber_client/
"
,
"
url
"
:
"
jabber_client/
"
,
"
cache
"
:
"
gadget_jabberclient.appcache
"
,
"
cache
"
:
"
gadget_jabberclient.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
Monitoring App
"
:
{
"
Monitoring App
"
:
{
"
url
"
:
"
officejs_monitoring/
"
,
"
url
"
:
"
officejs_monitoring/
"
,
"
cache
"
:
"
gadget_officejs_monitoring.appcache
"
"
cache
"
:
"
gadget_officejs_monitoring.appcache
"
},
},
"
App Store
"
:
{
"
App Store
"
:
{
"
url
"
:
"
officejs_appstore/
"
,
"
url
"
:
"
officejs_appstore/
"
,
"
cache
"
:
"
officejs_store.appcache
"
,
"
cache
"
:
"
officejs_store.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
MediaPlayer
"
:
{
"
MediaPlayer
"
:
{
"
url
"
:
"
officejs_audioplayer/
"
,
"
url
"
:
"
officejs_audioplayer/
"
,
"
cache
"
:
"
gadget_officejs_audioplayer.appcache
"
,
"
cache
"
:
"
gadget_officejs_audioplayer.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
Trade Application
"
:
{
"
Trade Application
"
:
{
"
url
"
:
"
osp-9/
"
,
"
url
"
:
"
osp-9/
"
,
"
cache
"
:
"
gadget_trade_application.appcache
"
,
"
cache
"
:
"
gadget_trade_application.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
Todomvc
"
:
{
"
Todomvc
"
:
{
"
url
"
:
"
officejs_todomvc/
"
,
"
url
"
:
"
officejs_todomvc/
"
,
"
cache
"
:
"
officejs_todomvc.appcache
"
,
"
cache
"
:
"
officejs_todomvc.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
},
},
"
Wall Search
"
:
{
"
Wall Search
"
:
{
"
url
"
:
"
officejs_wallsearch/
"
,
"
url
"
:
"
officejs_wallsearch/
"
,
"
cache
"
:
"
gadget_erp5_page_ojs_wallsearch.appcache
"
"
cache
"
:
"
gadget_erp5_page_ojs_wallsearch.appcache
"
},
},
"
Drive App
"
:
{
"
Drive App
"
:
{
"
url
"
:
"
officejs_drive_app/
"
,
"
url
"
:
"
officejs_drive_app/
"
,
"
cache
"
:
"
gadget_officejs_drive_app.appcache
"
"
cache
"
:
"
gadget_officejs_drive_app.appcache
"
},
},
"
Travel Expense
"
:
{
"
Travel Expense
"
:
{
"
url
"
:
"
officejs_hr/
"
,
"
url
"
:
"
officejs_hr/
"
,
"
cache
"
:
"
gadget_officejs_hr.appcache
"
,
"
cache
"
:
"
gadget_officejs_hr.appcache
"
,
"
no_installer
"
:
true
"
no_installer
"
:
true
}
}
};
};
function
exportZip
(
gadget
,
event
)
{
function
exportZip
(
gadget
,
event
)
{
var
j
,
var
j
,
zip_name
,
zip_name
,
i
=
0
,
form_result
=
{},
form_result
=
{},
len
=
event
.
target
.
length
,
len
=
event
.
target
.
length
,
app
;
app
;
...
@@ -132,7 +131,7 @@
...
@@ -132,7 +131,7 @@
element
.
appendChild
(
a
);
element
.
appendChild
(
a
);
a
.
style
=
"
display: none
"
;
a
.
style
=
"
display: none
"
;
a
.
href
=
url
;
a
.
href
=
url
;
a
.
download
=
zip_name
?
zip_name
:
default_name
+
"
.zip
"
;
a
.
download
=
zip_name
||
default_name
+
"
.zip
"
;
a
.
click
();
a
.
click
();
element
.
removeChild
(
a
);
element
.
removeChild
(
a
);
URL
.
revokeObjectURL
(
url
);
URL
.
revokeObjectURL
(
url
);
...
@@ -144,41 +143,40 @@
...
@@ -144,41 +143,40 @@
g
.
props
=
{};
g
.
props
=
{};
})
})
.
declareMethod
(
"
fillZip
"
,
function
(
cache_file
,
site_url
,
no_installer
)
{
.
declareMethod
(
"
fillZip
"
,
function
(
cache_file
,
site_url
,
no_installer
)
{
var
gadget
=
this
,
var
file_storage
=
jIO
.
createJIO
({
file_storage
=
jIO
.
createJIO
({
type
:
"
replicate
"
,
type
:
"
replicate
"
,
conflict_handling
:
2
,
conflict_handling
:
2
,
check_remote_attachment_creation
:
true
,
check_remote_attachment_creation
:
true
,
check_local_creation
:
false
,
check_local_creation
:
false
,
check_local_modification
:
false
,
check_local_modification
:
false
,
check_local_deletion
:
false
,
check_local_deletion
:
false
,
check_remote_deletion
:
false
,
check_remote_deletion
:
false
,
check_remote_modification
:
false
,
check_remote_modification
:
false
,
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
filesystem
"
,
type
:
"
filesystem
"
,
document
:
site_url
,
document
:
site_url
,
sub_storage
:
{
sub_storage
:
{
type
:
"
appcache
"
,
type
:
"
appcache
"
,
take_installer
:
no_installer
===
undefined
,
take_installer
:
no_installer
===
undefined
,
manifest
:
cache_file
,
manifest
:
cache_file
,
origin_url
:
site_url
,
origin_url
:
site_url
,
prefix
:
'
./
'
prefix
:
'
./
'
}
}
},
},
signature_sub_storage
:
{
signature_sub_storage
:
{
type
:
"
query
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
},
local_sub_storage
:
{
type
:
"
zipfile
"
}
}
},
});
local_sub_storage
:
{
type
:
"
zipfile
"
}
});
return
file_storage
.
repair
()
return
file_storage
.
repair
()
.
push
(
function
()
{
.
push
(
function
()
{
return
file_storage
.
getAttachment
(
'
/
'
,
'
/
'
);
return
file_storage
.
getAttachment
(
'
/
'
,
'
/
'
);
});
});
})
})
/////////////////////////////////////////
/////////////////////////////////////////
...
@@ -199,4 +197,4 @@
...
@@ -199,4 +197,4 @@
});
});
});
});
}(
window
,
navigator
,
RSVP
,
rJS
,
jIO
,
URL
));
}(
window
,
RSVP
,
rJS
,
jIO
,
URL
));
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
View file @
3a8a824e
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
67.36177.43828.39338
</string>
</value>
<value>
<string>
9
70.26865.57530.41659
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
26388949.99
</float>
<float>
15
37525773.05
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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